DeutscheSoft / AES70.js

A controller library implementing the AES70 standard
Other
39 stars 5 forks source link

Example on how to subscribe to device events #8

Closed jakemonton closed 1 year ago

jakemonton commented 1 year ago

Hi, I am playing with AES70. I was trying to implement subscription to device events but to no avail. Can you please provide a simple subscription process? Thanks

arneg commented 1 year ago

Hi @jakemonton ,

take a look at issue #6 which contains example code. If you need an OCA device, we have some running online at https://aes70x.net/

Hope this helps,

Arne

jakemonton commented 1 year ago

Hi @arneg thanks for the swift response. The example helped me a lot. Thanks again. Another question, is there a way to auto discover devices that is connected on the same network?

Jake

arneg commented 1 year ago

Normally aes70 devices are announced using mdns. See e.g. this code as an example for how to discover them

https://github.com/DeutscheSoft/aes70explorer/blob/master/src/nodejs/lib/discovery.js

jakemonton commented 1 year ago

Thanks @arneg saw this earlier. Cheers