/coap-rd

Nodejs implementation of CoAP Resource Directory

Primary LanguageJavaScript

Constrained Application Protocol (CoAP) Resource Directory (RD)

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.

NPM NPM

Introduction

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:

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.

Installation

$ npm install --save coap-rd
## Running as a standalone server
$ node coap-rd

Basic Example

    const RD = require('coap-rd');
	RD.on('register', (ep) => console.log("New EP: " + ep));
    RD.createServer({ domain: 'local' });