Code: Select all
uint64_t toSleep = 43200000000;
esp_sleep_enable_timer_wakeup(toSleep);
esp_deep_sleep_start();
Code: Select all
uint64_t toSleep = 43200000000;
esp_sleep_enable_timer_wakeup(toSleep);
esp_deep_sleep_start();
This workaround takes too much power consumption.ESP_Sprite wrote: ↑Wed Sep 21, 2022 2:45 amYou may also be able to work around it in software: for instance, set your wake time 40 minutes earlier than when you want to wake up, then during that 'early wakeup' get the current time (e.g. from ntp) and set deep sleep for the small period to the actual wake-up. That trick should get you an accuracy of +/- 4 minutes.
Users browsing this forum: No registered users and 72 guests