-->
Page 1 of 1

Deep sleep accuracy

PostPosted: Sun Jun 04, 2017 1:47 am
by Sturgizz
Hello,

I try to build a projetct where I need to put my esp8266 into deep sleep. For thet, I use the function ESP.deepsleep() but when I measure, it's not precise. For example, when I ask deep sleep for 1 minut, I measure about 58 seconds with my chronometer (my phone in fact). Did you know why it is not 1 minut? How to solve it? Thank's for your help.
I use the simple code bellow, I use this board https://fr.aliexpress.com/item/New-Wireless-module-NodeMcu-Lua-WIFI-Internet-of-Things-development-board-based-ESP8266-with-pcb-Antenna/32380018996.html? and D0 is connected to the RST pin.

void setup() {
// put your setup code here, to run once:

}

void hibernate(int pInterval) {
ESP.deepSleep(60000000 * pInterval, WAKE_RF_DEFAULT);
delay(100);
}

void loop() {
// put your main code here, to run repeatedly:
hibernate(1);
}

Thank's a lot for your help