Run program on Boron on wakeup

boron
Tags: #<Tag:0x00007fe22240cf98>

#1

Could somebody point me in the direction of some documentation/tutorials/resources that could help me learn how to execute a program when power is run to the wakeup pin on the boron LTE? Any other information would be much appreciated.


#2

After a deep sleep phase when woken via WKP the program starts running just the same as when coming back from a reset or after bootup.
However, you should be able to distinguish the reset cause via System.resetReason().

When waking after stop mode sleep your code will continue with the instruction following the System.sleep() command. In that case you need to check whether the current time would suggest a timed wake vs. a WKP wake.


#3

Sorry for the late response. Thank you for the information!