AllJoyn
Installation
npm install alljoyn
Usage
var alljoyn = ; // create a bus and sessionIdvar bus = alljoyn;var sessionId = 0; // create interface descriptionvar interface = alljoyn; // create listenervar listener = alljoyn; // create the interfacebus; // add a signal to the interface, specifying what kind of message we will accept// s = string, d = number, b = booleaninterface; // register the listener on the busbus // initialize the busbusstart; // create the BusObject that will send and receive messagesvar object = alljoyn; // start listeningbus; // discover devices with prefix 'org.alljoyn'bus // create a SessionPortListener for session changesvar portListener = alljoyn; // add the chat interface to the BusObjectobject; // register signal handler for BusObject// this function will be called for each received messagebus;
Currently Supported Operating Systems
- Mac OSX
- Linux (Ubuntu 14.04 tested)