dsandor / fauxmojs

Fake WeMo device ported to NodeJS. Allows Alexa (Amazon Echo) to make api calls.
56 stars 22 forks source link

Added device name in callback to allow using one callback for multipl… #16

Closed JanJohansen closed 6 years ago

JanJohansen commented 6 years ago

Added device name in callback to allow using one callback for multiple device callbacks.

I'm making an "Alexa to MQTT" gateway and need to use a single callback function for all device state change notifications. This change is backwards compatible, but also allows this usage scenario.

(The added.vs in .gitignore could be omitted. It was added since I use visual studio that creates additional files.)