-
Notifications
You must be signed in to change notification settings - Fork 0
Home
jack edited this page Apr 11, 2017
·
2 revisions
zapp-cie is an example of how to use the zive and ziee modules implement a simple CIE(Control and Indicating Equipment) ZigBee application. And it works with the ZigBee gateway solution - zigbee-shepherd.
$ npm install zapp-cie --save
var cieApp = require('zapp-cie'),
ZShepherd = require('zigbee-shepherd');
var shepherd = new ZShepherd('/dev/ttyACM0', { net: { panId: 0x4500, channelList: [ 11 ] } });
shepherd.on('ready', function () {
console.log('Server is ready.');
shepherd.mount(cieApp, function (err, epId) {
if (!err)
console.log('Mount the cieApp, epId: ' + epId);
});
});
shepherd.start(function (err) {
if (err)
console.log(err);
});