-
• #2
The code that handles this is at https://github.com/espruino/EspruinoHub/blob/master/lib/discovery.js#L135-L169
And as far as I can tell, if you sent any service data it should be relayed as
/ble/advertise/DEVICE/SERVICE
(as long asmqtt_advertise_service_data
is set in the config)So I guess you could use that? Obviously something similar could be implemented for manufacturer data but IMO using service data is just as easy.
-
• #3
Thanks, I'll get back this later and report out on my findings.
Re:
Advertising
I have multiple devices and would like to register for messages from any of them. Sometimes I take one to my Mom's house where one is in use for her to have a panic button that sends me an SMS when she presses it. I have a lab setup at home here. I have another one etc etc.
Rather than having to change the ID for each environment it would be nice to register for any messages coming from manufacturer ID == x.
Is it correct that that isn't available using the current broadcasting/registration model?