Skip to content
jack edited this page Apr 11, 2017 · 2 revisions


1. Overview

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.


2. Installation

$ npm install zapp-cie --save


3. Usage

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);
});
Clone this wiki locally