Moderator: igrr
tytower wrote:maybe you have the sensors soldered in or something .
No, its all on breadboard at the moment, but the only way to implement deep sleep on ESP-01 is to solder a very fine wire onto one of the "legs" of the ESP chip, across to the reset/XPD pin on the 0.1" header. Such a shame the ESP-01 boards were not designed with this connection already made, given that the leg in question is not accessible for any other purpose.
So I will consider purchase of an ESP-12. Another idea is, given that I may ultimately need more than one ADC input anyway, to use an attiny84/5 as an i2c slave, making its inputs available to the ESP. If I do that, I could also implement a way for the attiny to reset the ESP-01 every 5 minutes. This makes life more complex, however, having to program 2 chips!
PaulRB wrote:...So could this light sleep offer me an attractive compromise? If so, what do I do in place of delay(300000UL) ?
If you run in station mode instead of access point and station mode then it does appear that light sleep is the default. So just add
WiFi.mode(WIFI_STA);