I have a Feather 32u4 Lora board and see the max sleep time is 8sec. It will be battery/solar so i want it to sleep for a few minutes in between RF transmits to conserve power. Would this method be a ridiculous use of the SleepyDog library? I tested it seems to work on an LED i set up for testing purposes, I assume there's a current spike when waking each time in the "for" bracket.
Code: Select all
rf95.sleep(); // Put Radio to Sleep
int i;
for (i = 0; i <23; i++)
{int sleepMS = Watchdog.sleep(8000); } // 8sec is max for 32u4, 8*i = 184sec
And when it wakes up will it continue in the loop where it left of, not as a sketch restart like the esp DeepSleep?
Its hard to troubleshoot when the USB serial monitor never comes back up. The USBDevice.attach(); after Watchdog.sleep doesnt seem to help that.