Page 1 of 1

Noob question on Deepsleep

Posted: Wed Aug 17, 2016 9:45 pm
by dennisma
My noob question is am I correct in assuming that the alarm_handler function is just never going to get called because deepsleep basically restarts everything (calls both boot.py and main.py)? It's like performing a reset.

I received a WiPy yesterday and I have it performing a deepsleep for an hour, wake up, take some measurements and send them off to Adafruit's IO website, then perform a deepsleep again for another hour. So far it has been working for over a day posting data every hour.

Even though I have it working I was also wondering if there are any good sample programs out there that do something similar. I was going to post my own code but bbcode is turned off for me and the 'code' bbcode isn't currently working for me.

Thanks.