Power Management for WiFi in Arduino IDE
Posted: Sun Jul 19, 2015 1:59 am
In my application, I want to essentially wake up, gather a bunch of data from various sensors, send that data to a web server and then go back to sleep.
Since it takes some time to gather the data from the sensors, I'm using the wakeup mode from deep sleep where the radio is not powered.
However, it's not entirely clear how to then power up the radio when I'm ready to start transmitting (actually a few seconds before so that it can associate with the AP in the background, but not burn too much battery while I'm doing the prep work.
Anyone have any Arduino IDE compatible working example code that does strict power management on the 8266?
I'm using the Huzzah breakouts from Adafruit, but I also have some Sparkfun modules as well.
Since it takes some time to gather the data from the sensors, I'm using the wakeup mode from deep sleep where the radio is not powered.
However, it's not entirely clear how to then power up the radio when I'm ready to start transmitting (actually a few seconds before so that it can associate with the AP in the background, but not burn too much battery while I'm doing the prep work.
Anyone have any Arduino IDE compatible working example code that does strict power management on the 8266?
I'm using the Huzzah breakouts from Adafruit, but I also have some Sparkfun modules as well.