API-first fabric for Simple Service Discovery Protocol (SSDP) for the Internet of Things (IoT)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
src
test
tools
.gitignore
LICENSE
NOTICE
README.md
demo.js
index.js
jsconfig.json
package.json
shippable.yml

README.md

IOPA
iopa-ssdp

Build Status IOPA limerun

NPM

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());
      });}