I'd like to make hello_sensor connected or not with button.
During idle state, board can connect or disconnect depending on the button.
But When the board is in deep sleep mode, it can not advertise with the first button interrupt.
I summarized my test procedures.
1. idle case
1) button press (advertise) - button press (stop advertise and disconnect) - button press (advertise ... ) .....
2. deep sleep case
1) button press (advertise) - button press (stop advertise and disconnect) - deep sleep - button press (wake up) - button press (advertise)...
if board does not go into deep sleep mode, it can toggle the connection state (advertisement state).
but if board goes into deep sleep mode, I should press button twice, the first is for wakeup and the second is for advertising.
Could you tell me what I should do after waking up from deep sleep mode for advertisement?
Out of deep sleep your code will go through the Create function. It looks that out of Create you need to be discoverable. After that off/on will trigger correctly.