Hi. In the Eddystone beacon tutorial it says that we can broadcast beacon url together with other advertising by using
Which works fine, but I cannot find a way to turn off beacon advertising,
doesn't seems to work, is there another command I should use? Thanks.
If you don't want to advertise Puck.js normally at all and just want Eddystone then you can just use the standard Eddystone example:
This also works too:
You can use NRF.sleep() to completely turn off advertising, but the issue there is it turns off everything. A ScanResponse is sent in response to a query on an Advertising packet, so if there's no advertising then it's no use at all. If you use NRF.sleep() without a way to call NRF.wake() (eg. on a button press) then it effectively turns your Puck into a paperweight until you reset it :)
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem