0.1.1 • Published 6 years ago

zigbee-gateway v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

zigbee-shepherd

An open source ZigBee gateway solution with node.js

Documentation

Please visit the Wiki.

Overview

zigbee-shepherd is an open source ZigBee gateway solution with node.js. It uses TI's CC253X wireless SoC as a zigbee network processor (ZNP), and takes the ZNP approach with cc-znp to run the CC253X as a coordinator and to run zigbee-shepherd as the host.

Installation

  • Install zigbee-gateway

$ npm install zigbee-gateway --save

Usage

var ZShepherd = require('zigbee-gateway');
var shepherd = new ZShepherd('/dev/ttyUSB0');  // create a ZigBee server

shepherd.on('ready', function () {
    console.log('Server is ready.');

    // allow devices to join the network within 60 secs
    shepherd.permitJoin(60, function (err) {
        if (err)
            console.log(err);
    }); 
});

shepherd.start(function (err) {                // start the server
    if (err)
        console.log(err);
});

License

Licensed under MIT.