Neverending Puppy Marathon
Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

mqtt-shepherd

0.7.4 • Public • Published

mqtt-shepherd

Network server and manager for the lightweight MQTT machine network (LWMQN)

NPM

Travis branch npm PyPI npm

Make sure you are with version >= 0.7.0, the old bumps before 0.7.0 are all deprecated.


Documentation

Please visit the Wiki.


Overview

Lightweight MQTT machine network (LWMQN) is an open source project that follows part of OMA LWM2M v1.0 specification to meet the minimum requirements of machine network management.

LWMQN Network


Installation

$ npm install mqtt-shepherd --save


Basic Usage

var MqttShepherd = require('mqtt-shepherd');
var qserver = new MqttShepherd();   // create a LWMQN server
 
qserver.on('ready', function () {
    console.log('Server is ready.');
 
    // when server is ready, allow devices to join the network within 180 secs
    qserver.permitJoin(180);
});
 
qserver.start(function (err) {      // start the sever
    if (err)
        console.log(err);
});
 
// That's all to start a LWMQN server.
// Now qserver is going to automatically tackle most of the network managing things.

License

Licensed under MIT.

Keywords

none

install

npm i mqtt-shepherd

Downloadsweekly downloads

145

version

0.7.4

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability