I have an Election that sleeps for anywhere between 5 minutes and 12 hours.
It is set to wake up upon signal dropping from the pin, or at the end of its cycle. When it reaches the end of it’s sleep cycle, it uploads.
My problem is when it wakes from sleep for anything longer than 2 hours (whether by pin input or at the end of it’s sleep cycle), it either restarts itself or fails to upload.
The code I am using is;
System.sleep(pulseInput, FALLING, SLEEP_NETWORK_STANDBY, sleepFor);
Is there a limit to how long the device can sleep?
Thanks in advance for your help.