Hi
Im new on nRF9160 and Zephyr.
Is there a sample to powersave to lowes current and wakeup every hour very fast?
Hi
Im new on nRF9160 and Zephyr.
Is there a sample to powersave to lowes current and wakeup every hour very fast?
Hi, basically all examples use this kind of power save "feature". You can use a timer to set up a periodic task: http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/kernel/timing/timers.html#
Zephyr will handle the wakeup and other threads, and put the CPU to sleep when there are no ongoing tasks.
You can check out the blinky example to get started: http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/basic/blinky/README.html
https://github.com/nrfconnect/sdk-zephyr/blob/master/samples/basic/blinky/src/main.c
It uses a k_sleep function in the main loop to toggle the LEDs, which is another way of setting up periodic tasks.