bazwilliams / node-ssdp

Simple Service Discovery for Node.js, handling Upnp NOTIFY and M-SEARCH requests.
MIT License
16 stars 8 forks source link

Sending Device Description info #3

Closed shakthimaan closed 8 years ago

shakthimaan commented 8 years ago

How does one send "Device Description" info from a Device to the Control Point using this module?

bazwilliams commented 8 years ago

The event handlers are expected to supply a function. This function will be invoked with a device descriptor object.

shakthimaan commented 8 years ago

Sorry, I didn't quite understand that. Can you please provide an example?

bazwilliams commented 8 years ago

The code is used in this file https://github.com/bazwilliams/openhome-monitor-service/blob/master/index.js

You can see the event handlers and the passed in function