One-shot beacon example?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

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)?

0 Likes
1 Solution
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hello,

   

Please look into our GitHub Projects:

   

https://github.com/cypresssemiconductorco/PSoC-4-BLE/tree/master/100_Projects_in_100_Days

   

Refer Day08,09 projects. Please check whether it suits your application.

   

Thanks,
Anjana

View solution in original post

0 Likes
1 Reply
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hello,

   

Please look into our GitHub Projects:

   

https://github.com/cypresssemiconductorco/PSoC-4-BLE/tree/master/100_Projects_in_100_Days

   

Refer Day08,09 projects. Please check whether it suits your application.

   

Thanks,
Anjana

0 Likes