Modern UPnP client with async/await support and sane extensible codebase.
npm i node-upnp
const UPnPClient = require('node-upnp');
const client = new UPnPClient({
url: 'http://192.168.1.150:44042/some.xml'
});
const desc = await client.getDeviceDescription();
console.log('Device', desc);
returns device description
returns service description
calls actionName
for serviceId
with data
and return a result
subscribes for serviceId
service updates. Keeps the subsription alive.
unsubscribes from serviceId
service updates.
returns true/false
is the client has any active subscriptions
clears all subscriptions
subscribes on the variable change event. Options:
- force — Boolean, when true, subscribes on the service even if variable is
sendEvents='no'
in the service description. This options is for variable included inLastChange
event.
License MIT