Noob question on Deepsleep

Questions and discussion about The WiPy 1.0 board and CC3200 boards.
Target audience: Users with a WiPy 1.0 or CC3200 board.
Post Reply
dennisma
Posts: 2
Joined: Tue Aug 16, 2016 6:07 pm

Noob question on Deepsleep

Post by dennisma » Wed Aug 17, 2016 9:45 pm

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.

Post Reply