I want to make my device automatically go to sleep mode when the power is connected. And when the device wakes up from sleep mode, it should not automatically go to sleep.
But I can't find a suitable commands for this.
How do I know if nrf52 woke up from sleep mode or not when booting?