I'm looking for example code for a one-shot beacon. That is, a user presses a button on the broadcaster, some processing work is done, and then it beacons once (no BLE connection), then goes back into deep sleep or hibernate.
I've been trying to adapt one of the synchronous (periodic) beaconing examples, but I'm running into an issue that I can't figure out. The first button press works as expected (one beacon), but subsequent presses result in two beacons, one of which comes before the processing work. It would seem that there is a residual message in the BLESS or something.
Can anyone point me at an example that is NOT periodic in its broadcast (and does NOT require a connection)?
Please look into our GitHub Projects:
Refer Day08,09 projects. Please check whether it suits your application.