Power management with nRF Connect SDK v2.6.1

Hello,

I want to make periodically wake up nRF52840, performing some work (connecting to MQTT broker, sending some data) and after that going to low power mode. Then the nRF52840 have to be waken up after some time expires [1 - 300] seconds or by an interrupt from an accelerometer.
I have read this can be achieved using `pm_state_force` function. However it seems that this is not the way since nRF Connect SDK v2.5.0. I also read this thread, where is said that pm_suspend_devices function shall be used.

Which is the header for that function, may it is zephyr/kernel/include/kernel_internal.h ?
Can you provide here some guidelines and/or examples of how to deal with such task in nRF Connect v2.6.1.

Regards,
Ivan

Related