Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By phipli
#13551 Afternoon folks,

I was wondering if there was any way to trigger a low power mode with delayed wakeup using the modified Arduino IDE to program the ESP8266?

I've done a bit of reading and don't mind adding a wire to the board to connect the reset pin to a GPIO.

Any suggestions?

Thanks, Phil
User avatar
By longinus
#13696 Add to the top of your sketch...

Code: Select allextern "C" {
  #include "user_interface.h"
}


Then when you want to sleep...

Code: Select allsystem_deep_sleep_set_option(0);
system_deep_sleep(60000000);

(The time is in microseconds)

You need to connect the RESET and GPIO 16 pins together for this to work... They are not exposed in all of the ESP boards.