https://github.com/petereb/lwm2m-bs-server
Bootstrap server of lightweight M2M (LWM2M).
https://github.com/petereb/lwm2m-bs-server
bootstrap-server lwm2m nodejs
Last synced: 12 months ago
JSON representation
Bootstrap server of lightweight M2M (LWM2M).
- Host: GitHub
- URL: https://github.com/petereb/lwm2m-bs-server
- Owner: PeterEB
- License: mit
- Created: 2017-06-02T03:11:58.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-05-11T08:16:31.000Z (about 8 years ago)
- Last Synced: 2025-05-26T11:09:20.575Z (about 1 year ago)
- Topics: bootstrap-server, lwm2m, nodejs
- Language: JavaScript
- Size: 35.2 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lwm2m-bs-server
Bootstrap server of lightweight M2M (LWM2M).
[](https://nodei.co/npm/lwm2m-bs-server/)
[](https://travis-ci.org/PeterEB/lwm2m-bs-server)
[](https://www.npmjs.com/package/lwm2m-bs-server)
[](https://www.npmjs.com/package/lwm2m-bs-server)
## Documentation
Please visit the [Wiki](https://github.com/PeterEB/lwm2m-bs-server/wiki).
## Overview
[**OMA Lightweight M2M**](http://technical.openmobilealliance.org/Technical/technical-information/release-program/current-releases/oma-lightweightm2m-v1-0) (LWM2M) is a resource constrained device management protocol relies on [**CoAP**](https://tools.ietf.org/html/rfc7252). 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**](https://github.com/PeterEB/coap-shepherd)
* Client-side library: [**coap-node**](https://github.com/PeterEB/coap-node)
* Bootstrap server library: **lwm2m-bs-server** (this module)
* [**A simple demo webapp**](https://github.com/PeterEB/quick-demo)

### 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**](https://github.com/eclipse/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:
```js
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](https://github.com/PeterEB/lwm2m-bs-server/blob/master/LICENSE).