Since a module can now specify an array of bonjour queries to companion, it would be useful it companion passed back details of the bonjour announcement.
Specific use case:
I am working on a module which has queries for both tcp and udp protocols. I think if a user has selected a discovered bonjour device then the user shouldn't have to manually tell the module which protocol to connect with, nor should the module have to figure it out by trial an error or some other convoluted means.
In other cases it may be useful to know exactly which model of a device type has been selected.
The simple solution is to expand the returned string:
Since the returned string is colon separated, and typically handled with something like const [host, port] = config.bonjourDevice.split(':') the returned string could be expanded to something likehost:port:protocol:type:txtfields. This is probably fairly safe, but by no means is backwards compatibility certain. At any rate any required fixes would be simple, and the architectural changes equally so (I hope).
Since a module can now specify an array of bonjour queries to companion, it would be useful it companion passed back details of the bonjour announcement.
Specific use case:
I am working on a module which has queries for both
tcpandudpprotocols. I think if a user has selected a discovered bonjour device then the user shouldn't have to manually tell the module which protocol to connect with, nor should the module have to figure it out by trial an error or some other convoluted means.In other cases it may be useful to know exactly which model of a device type has been selected.
The simple solution is to expand the returned string:
Since the returned string is colon separated, and typically handled with something like
const [host, port] = config.bonjourDevice.split(':')the returned string could be expanded to something likehost:port:protocol:type:txtfields. This is probably fairly safe, but by no means is backwards compatibility certain. At any rate any required fixes would be simple, and the architectural changes equally so (I hope).