coap-rd is a server library for CoAP Resource Directory.
While it can work as a stand alone RD server, it is designed
to be used as a Node RED module together with
node-red-contrib-coap-rd.
- Introduction
- Installation
- Running as a standalone server
- Basic Example
- API
- Contributing
- Licence & copyright
What is CoAP Resource Directory? Constrained Application Protocol (CoAP) is a software protocol intended to be used in very simple electronics devices that allows them to communicate interactively over the Internet. - Wikipedia
CoAP Resource Directory is a server where the devices that talk CoAP can register themselves at so that other devices in the network can find them without manual configuration.
This library follows:
- draft-11 of CoAP RD.
It does not implement the CoAP protocol but uses node-coap instead.
coap-rd is an OPEN Open Source Project. See the Contributing section to find out what that means.
$ npm install --save coap-rd
$ node coap-rd
const RD = require('coap-rd');
RD.on('register', (ep) => console.log("New EP: " + ep));
RD.createServer({ domain: 'local' });