Bootstrap server of lightweight M2M (LWM2M).
Please visit the Wiki.
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
- 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.
$ npm install lwm2m-bs-server --save
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);
});
Licensed under MIT.