So I’m working on an electron device putting it to sleep and waking up using the wakeUpPin
. Looking over the docs I see the following:
// Keep cellular running.
// Pause microcontroller.
// Application resumes on pin trigger or after seconds.
System.sleep(wakeUpPin, edgeTriggerMode, SLEEP_NETWORK_STANDBY, seconds);
Looks good! However, the example implements:
System.sleep(wakeUpPin, edgeTriggerMode, seconds, SLEEP_NETWORK_STANDBY);
I haven’t actually tried either, I’m just trying to figure out how to go about putting my device to sleep and waking it up. I’m just curious as to which is the actual way to make this happen?
(If one needs to be corrected, I’ll be more than happy to create a PR for whichever should be. If neither needs to be corrected, I’ll be more than happy to read/listen/discover to how this actually works).
Thanks in advance!