I have an Electron running 0.5.3 and after publishing I put it in stop mode with:
System.sleep(A0, FALLING, SleepS, SLEEP_NETWORK_STANDBY);
SleepS is 1200 (20 minutes). After connecting the battery, the Electron will publish then sleep for the expected interval, then wake as expected, publish, and sleep again. It doesn’t wake again after the second sleep. No RGB LED activity, nothing in the log for my Webhook; it just appears to stay in stop mode long after the sleep interval should’ve elapsed.
I originally had
SleepS at 3600 but found another forum post that seemed to hint that anything over 25 minutes might be a problem, so I tried 20 and am seeing the same behavior.
A0 isn’t currently connected to anything but I intend to connect it to an active low button; the intent is to either wake when the button is pressed, or after the
SleepS interval, whichever comes first.
What am I doing wrong?