Re: Can someone please help a noob with a Deep Sleep code?
Posted: Thu Jan 23, 2020 6:42 am
Try changing the type for sleepTimesS to an unsigned long instead of an int.
-->
Open Community Forum for ESP8266, Come share Arduino and IoT (Internet of Things)
https://www.esp8266.com/
btidey wrote:Try changing the type for sleepTimesS to an unsigned long instead of an int.
schufti wrote:since in the library sleeptime is defined as unit64_t you probably should use ull
#define sleepTimeS 3600ull
.
.
ESP.deepSleep(sleepTimeS * 1000000ull, WAKE_RF_DEFAULT); // Sleep for 60 seconds