lwmqn / shepherd

Server & manager for the LwM2M-like Lightweight Message Queuing Network (LwMQN)
http://lwmqn.github.io/
MIT License
41 stars 4 forks source link
lwm2m lwm2m-server lwmqn mqtt

LWMQN Network

**@lwmqn/shepherd** is a network server and manager for the Lightweight Message Queuing Network (LwMQN) [![NPM version](https://img.shields.io/npm/v/shepherd.svg?style=flat-square)](https://www.npmjs.com/package/shepherd) [![NPM downloads](https://img.shields.io/npm/dm/shepherd.svg?style=flat-square)](https://www.npmjs.com/package/shepherd) [![Travis branch](https://img.shields.io/travis/lwmqn/shepherd/master.svg?maxAge=2592000&style=flat-square)](https://travis-ci.org/lwmqn/shepherd) [![Gitter](https://img.shields.io/gitter/room/lwmqn/Lobby.svg?style=flat-square)](https://gitter.im/lwmqn/Lobby) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](http://standardjs.com/) ![pr-welcoming-image](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)

What is LwMQN

Lightweight Message Queuing 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.

Server-side and Client-side Libraries:

Features

Understanding Smart Objects and the IPSO Model

IPSO Model

Acronyms and Abbreviations


Installation

Currently Node.js 8.x LTS or higher is required.

$ npm install @lwmqn/shepherd

Compabitility table

Shepherd versions /
Node.js versions
8.x
LTS
10.x
LTS
11.x 12.x
LTS
13.x
v0.8.0

Basic Usage

const Shepherd = require('@lwmqn/shepherd')
const qserver = new Shepherd() // 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.

Documentation


License

Licensed under MIT.