iopa-ssdp
v1.3.4
Published
API-first fabrice for Simple Service Discovery Protocol (SSDP) for the Internet of Things (IoT)
Downloads
22
Readme
iopa-ssdp
About
iopa-ssdp
is an API-First fabric for Simple Service Discovery Protocol (SSDP) for the Internet of Things (IoT)
and for Microservices Container-Based Architectures (MCBA) based on the Internet of Protocols Alliance (IOPA) specification
It servers SSDP messages in standard IOPA format
Written in native javascript for maximum performance and portability to constrained devices and services, using
native HTTP parser and formatter in iopa-http
Status
Working Release
Includes:
Server Functions
- SSDP 1.03 parser
- Works over UDP and other IOPA transports
- Optimized pure javascript parser with no expensive callouts to C
- Provides Alive, Bye, Notify and Search-Responses
- Enables Universal Plug and Play discovery (uPNP) mechanisms
Client Functions
- SSDP 1.03 formatter
- Works over UDP and other IOPA transports
- Optimized pure javascript parser with no expensive callouts to C
- Provides Search requests and matches responses
- Enables Universal Plug and Play discovery (uPNP) mechanisms
Installation
npm install iopa-ssdp
Usage
Discovery Server and Client
var app = new iopa.App();
app.use(IopaDiscoveryServerSSDP);
app.use(IopaDiscoveryClientSSDP);
var device = new DemoDevice().context;
app.device.register(device.context)
app.device.probe("upnp:rootdevice", function(device){
console.log(device.toString());
});}