QUERY · ISSUE
ESP32 timer wake up repeating
bugport-esp32
I'm using timer wakeup from light sleep with:
machine.lightsleep(30000) #sleep 30s
after 30 the esp32 wakes, disable peripherals and sleep indefinitely with:
machine.lightsleep()
but the 30s wake timer keeps repeating and didn't find any way to disable wake source
CANDIDATE · ISSUE
ESP32 calling sleep function without arguments after calling a sleep function previously with expiry causes sleep to expire at previously set expiry
port-esp32
Hello.
In code, if I do machine.anysleep(some_expiry), then later on call machine.anysleep(), the ESP32 wakes after the expiry set in the first call with machine.wake_reason() as 4 (TIMER_WAKE, which is undocumented btw).
It seems to be because the wakeup trigger is never disabled as only esp_sleep_enable_timer_wakeup is called and never esp_sleep_disable_timer_wakeup, that i could find.
see https://github.com/espressif/esp-idf/issues/1677
Was on version 1.15.