I found a function, sys_reboot() that apparently reboots the nRF9160. In order to use this function, what must be configured and what are the correct .h files?
Thanks
I found a function, sys_reboot() that apparently reboots the nRF9160. In order to use this function, what must be configured and what are the correct .h files?
Thanks
You should get what you need by setting CONFIG_REBOOT=y in your prj.conf
The function is declared in include/power/reboot.h
Does it it to include any other file? The build failed due to error:
implicit declaration of function 'sys_reboot'
Does it it to include any other file? The build failed due to error:
implicit declaration of function 'sys_reboot'
No, you should only have to add CONFIG_REBOOT=y to prj.conf and:
#include <misc/reboot.h>
in any file that calls sys_reboot(0);