Hello,
It appears that we can't access the 3 sleep modes that are apparently available in the original ESP8266WiFi library, Modem-Sleep, Light-Sleep and Deep-Sleep, these methods are not exposed. These can be essential for developers that want to run an ESP8266 via a battery for long periods of time. I believe that the current version of the original ESP8266WiFi.h library offers these sleep modes. We could really do with at least Deep-Sleep mode as it offers extremely low power consumption usage for example data logging for extremely long periods of time with just a 3.3v LiFe battery. Using Deep-Sleep the ESP8266 uses around 9mA of current, compare this to around 80mA of current without putting the ESP8266 into Deep-Sleep and the potential power saving is clear to see.
The ESP8266 will sleeps for 10 minutes then wakes up.
ESP.deepSleep(10 * 1000000);
Anyway if it's possible to add the 3 sleep modes to the ESP8266WiFi library, or at least just the Deep-Sleep method, that would be absolutely fabulous.
Thank you.
It appears that we can't access the 3 sleep modes that are apparently available in the original ESP8266WiFi library, Modem-Sleep, Light-Sleep and Deep-Sleep, these methods are not exposed. These can be essential for developers that want to run an ESP8266 via a battery for long periods of time. I believe that the current version of the original ESP8266WiFi.h library offers these sleep modes. We could really do with at least Deep-Sleep mode as it offers extremely low power consumption usage for example data logging for extremely long periods of time with just a 3.3v LiFe battery. Using Deep-Sleep the ESP8266 uses around 9mA of current, compare this to around 80mA of current without putting the ESP8266 into Deep-Sleep and the potential power saving is clear to see.
The ESP8266 will sleeps for 10 minutes then wakes up.
ESP.deepSleep(10 * 1000000);
Anyway if it's possible to add the 3 sleep modes to the ESP8266WiFi library, or at least just the Deep-Sleep method, that would be absolutely fabulous.
Thank you.
Last edited: