node-alljoyn
Version:
Access Alljoyn service functions
41 lines (30 loc) • 921 B
Markdown
for Alljoyn Service Functions
``` bash
$ npm install node-alljoyn
```
We plan to provide three Alljoyn functions in this module.
- Action Handler
- Event Reader & Rule Engine
- ControlPanel Client
This sample prints the device name from your Alljoyn network.
``` javascript
var alljoyn = require('node-alljoyn');
var result = alljoyn.findAlljoynServices();
if (result == 0) {
var dev_num = alljoyn.getDeviceName();
for (var i=0; i < dev_num; i++) {
console.log('Device Name [' + i + '] = "' + alljoyn.getDeviceName(i) + '"');
}
}
```
- Linux (Yocto 1.5)
**v14.06**
* The Alljoyn API integration is leveraged from [alljoyn](https://www.npmjs.com/package/alljoyn).
Copyright 2015 ADVANTECH Corp. under [the Apache 2.0 license](LICENSE).
Node.js Integration