button press to wake up | Cypress Semiconductor
button press to wake up
In sample projects many of it have this text:
On an advertisement event timeout, if the device is not connected to any Client, the device goes to the Low Power mode (Hibernate mode) and waits for a SW2 button press to wake up the device again and start advertising.
but Sw2 not have interrupt handler and when user push button program make restart. I see for example in BLE_Battery_Level this message :
"BLE Battery Level Example Project " that placed in start of code.
How make that device will be real wake up ( advertising without reset) ?