-->
Page 2 of 2

Re: system_deep_sleep( ???????????? );

PostPosted: Mon Sep 24, 2018 12:47 am
by schufti
GerryKeely wrote:According to the Espressif IoT SDK Programming Guide its defined as

void system_deep_sleep(uint32 time_in_us) so that would be 4294967295uS = 1.19hours if my calculation is correct.


then it is highly recommended to update your copy of the SDK docs as the latest ones (~1 year) state:
3.3.9. bool system_deep_sleep(uint64 time_in_us) and give a formula for max deep_sleep_time

Re: system_deep_sleep( ???????????? );

PostPosted: Mon Sep 24, 2018 5:12 am
by torntrousers
Lots of discussion around the max sleep time here: https://github.com/esp8266/Arduino/pull/4936

For your case, why not just use the value 0 to sleep forever?