-->
Page 1 of 2

deep sleep with no wake up

PostPosted: Sat Jan 09, 2016 6:11 pm
by Gadjet
Hi,
I'm running an ESP8266 from batteries and will run some code just once when powered up and then I want to send the ESP to a deep sleep permanently can I do this by using
Code: Select allESP.deepSleep(60000000);
but not have GPIO15 connected to the reset pin, will this put the ESP to sleep until the power has been removed and switched on again.

Re: deep sleep with no wake up

PostPosted: Sat Jan 09, 2016 6:18 pm
by WereCatf
It's GPIO16, not GPIO15, that needs to be tied to reset. Also, yes, at least that's how my ESP8266 works: if GPIO16 is not tied to reset the board won't wake up from deepSleep().

Re: deep sleep with no wake up

PostPosted: Sat Jan 09, 2016 6:26 pm
by Gadjet
Sorry, yes it was GPIO16.

Thanks for answering, I'll give it a try tomorrow.

Re: deep sleep with no wake up

PostPosted: Fri Jan 15, 2016 11:44 am
by sej7278
should use ESP.deepSleep(0); to sleep forever, rather than 600000

i'm a bit stumped though, as i cannot get waking to work with gpio16 tied to RST (a button on the RST pin works though) and ESP.deepSleep(0, RF_DISABLED); i can't get to wake at all without pulling the power.