Skip to content
This repository has been archived by the owner on Jun 28, 2020. It is now read-only.

UPnP Client Library for NodeJS. Aims to support as many device specifications as possible...

Notifications You must be signed in to change notification settings

pbuyle/node-upnp-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-upnp-client

UPnP "Control Point" Library for NodeJS.

A module for NodeJS written in JavaScript to interface with UPnP compliant devices.

Usage

This module is still alpha quality, and it's API is a work-in-progress and subject to change!

Discovery

Discovering UPnP compliant devices on the network is usually the first step in anything UPnP-related:

var upnp = require("upnp");

// First, create a client instance
var controlPoint = new upnp.ControlPoint();

controlPoint.on("DeviceAvailable", function(device) {
  console.log(device.nt);
    //-> "urn:schemas-upnp-org:device:InternetGatewayDevice:1"
  console.log(device.location);
    //-> "http://192.168.0.1/root.sxml"
});

controlPoint.on("DeviceFound", function(device) {
  console.log(device.st);
    //-> "urn:schemas-upnp-org:device:InternetGatewayDevice:1"
  console.log(device.location);
    //-> "http://192.168.0.1/root.sxml"
}

controlPoint.search('urn:schemas-upnp-org:device:InternetGatewayDevice:1');

About

UPnP Client Library for NodeJS. Aims to support as many device specifications as possible...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%