After the power failure of the host, the master and slave are disconnected.
What is the slave still doing at this time?
After the power failure of the host, the master and slave are disconnected.
What is the slave still doing at this time?
Hello,
It shows that I have a problem here.


Why did my piece of code have that effect?
The error is returned because you are trying to enter System OFF mode while in debug interface mode (see Emulated System OFF mode). Do you want the chip to power down after a disconnect? If not, you need to check where sleep_mode_enter() is being called in your application.
Hello,
I only called it at this location.

Hello,
The BLE_ADV_EVT_IDLE even is raised on advertising timeout. Do you want the device to power off after a certain period of inactivity (i.e. no connections attempts), or do you want the device to keep advertising forever?