-->
Page 4 of 5

Re: ESP.deepSleep(0); does not power off my ESP8266...

PostPosted: Mon Jul 13, 2020 4:01 pm
by btidey
There has been no change to the Arduino code in deepSleep since Aug 2018 which added the instant version but did not affect the vanilla version. The previous change was in Jan 2018 which changed the sleep microsecond parameter to a uint64 from the previous uint32. This was to allow for a more extended time range.

I don't think I would call those meddling just the normal improvements one hopes to get.

The uint64 definition could be significant here if the original poster is not using a variable for the sleep time and is setting it to 0 rather than using the literal 0 that was indicated in the first post. If the variable was not a uint64 then that could cause an unexpected value (i.e. non zero) to be passed in.

Re: ESP.deepSleep(0); does not power off my ESP8266...

PostPosted: Mon Jul 13, 2020 5:48 pm
by sblantipodi
It's way too strange.
Using esp8266 D1 mini from lolin.

Build using PlatformIO.

ESP.deepSleep(0) makes my esp sleep for 57 minutes.
It wake up every 57 minutes.

How this is possible?

Re: ESP.deepSleep(0); does not power off my ESP8266...

PostPosted: Tue Jul 14, 2020 12:12 am
by schufti
can you please inform us on what version of the arduino core you are using?
57min is a very strange value, not related to the sdk limits in any version ...

Re: ESP.deepSleep(0); does not power off my ESP8266...

PostPosted: Tue Jul 14, 2020 3:15 am
by btidey
Also post the exact hardware set up and code you are using where you see the problem and / or try the simplest test possible using the code I posted.