I have developed a custom board with a NRF51822AB on which there is no power switch. I want to power up and power down the device with a push button. Power up : The user push the button for 2 seconds to wake up the device. Power down : The device go in System Off where there is no Bluetooth connection for more than 1 minute. I don't find how to go in system Off before starting advertising. I have tried but there is an unknown interruption that wake up the device.
I have read a lot of things about Powerdown examples but I don't find the way to do this.
Need help. thank you