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

Moderator: igrr

User avatar
By WereCatf
#38875
sej7278 wrote: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.


If you put the ESP to deep sleep forever then exactly how do you expect it to wake up except someone or something else pulling the RST-pin? I mean, forever means literally that -- it'll go to deep sleep and stay in deep sleep. Also, why do you issue RF_DISABLED to it?
User avatar
By sej7278
#38881 i'm putting RF_DISABLED so that it'll use less current whilst asleep, i don't need it to use wifi until after i manually reset it, but it won't wake even if i press the reset button when i pass RF_DISABLED in (as far as i can see its still asleep)
User avatar
By WereCatf
#38882
sej7278 wrote:i'm putting RF_DISABLED so that it'll use less current whilst asleep


No. The flag RF_DISABLED doesn't change how deep-sleep works, the flag changes what happens when the device wakes up. In deep-sleep WiFi is always off, no matter what flag you give it.

sej7278 wrote: i don't need it to use wifi until after i manually reset it


Then you don't want to use RF_DISABLED because that disables WiFi when you reset the device/it wakes up.