lwm2m-bs-server
v0.0.4
Published
Bootstrap server of lightweight M2M (LWM2M).
Downloads
13
Readme
lwm2m-bs-server
Bootstrap server of lightweight M2M (LWM2M).
Documentation
Please visit the Wiki.
Overview
OMA Lightweight M2M (LWM2M) is a resource constrained device management protocol relies on CoAP. And CoAP is an application layer protocol that allows devices to communicate with each other RESTfully over the Internet.
coap-shepherd, coap-node and lwm2m-bs-server modules aim to provide a simple way to build and manage a LWM2M machine network.
- Server-side library: coap-shepherd
- Client-side library: coap-node
- Bootstrap server library: lwm2m-bs-server (this module)
- A simple demo webapp
LWM2M Bootstrap Server: lwm2m-bs-server
- It is a LWM2M Bootstrap Server application framework running on node.js.
- It is used to provision the LwM2M Client with the information required to register the LwM2M Server(s).
- It works well with Wakaama.
- Support LwM2M Client Initiated Bootstrap.
Installation
$ npm install lwm2m-bs-server --save
Usage
This example shows how to start a bootstrap server and set a client bootstrap configuration after the server is ready:
var bsServer = require('lwm2m-bs-server');
bsServer.on('ready', function () {
console.log('Bootstrap server is ready.');
bsServer.configure({
clientName: 'lwm2m-client-test',
serverURI: 'coap://leshan.eclipse.org:5683'
});
});
bsServer.start(function (err) {
if (err)
console.log(err);
});
License
Licensed under MIT.