Boot Reason Query
This API can be used to determine the reason for the last OS boot when using Ultra Low Power Mode (e.g., power on due to pre-configured time setty or GPIO toggled externally).
Boot may occur due to exit from ultra low power mode or press on Power button. Exit from low power state may occur through various sources (e.g., GPIO pins or timers that are specific to the device hardware).
Sample Code
This C code sample sows an API calling sequence to get boot-reason:
void CheckMDMBootReason(void){if (le_bootReason_WasTimer()){LE_INFO("Timer boot");}{LE_INFO("GPIO<gpioNum> boot");}else{LE_INFO("Power-on");}}
Copyright (C) Sierra Wireless Inc.