How to keep periodic wakeup when EXT1 awakening occurs?
Posted: Mon Jul 18, 2022 11:59 am
My questions are just to be sure about the behaviour of ESP32 in deep sleep mode with EXT1 and TIMER active:
1) If I set the TIMER and the EXT1 wakeups on my ESP32 and the EXT1 occurs, to keep the periodic awakening behaviour I need just to go in deep sleep without call again the esp_sleep_enable_timer_wakeup()?
2) When the EXT1 wakeup occurs can I know how much time has passed since the last TIMER wakeup? Can (and how) I read the RTC timer?
1) If I set the TIMER and the EXT1 wakeups on my ESP32 and the EXT1 occurs, to keep the periodic awakening behaviour I need just to go in deep sleep without call again the esp_sleep_enable_timer_wakeup()?
2) When the EXT1 wakeup occurs can I know how much time has passed since the last TIMER wakeup? Can (and how) I read the RTC timer?