ESP32 - Keep the deep sleep timing when other wakeup source occurs

thoraz
Posts: 27
Joined: Tue Jan 28, 2020 4:02 pm

ESP32 - Keep the deep sleep timing when other wakeup source occurs

Postby thoraz » Fri Sep 30, 2022 8:21 am

I'm working on a system that should wakeup every 2 minutes to perform a specific task and come back to sleep. During the sleep I need to count the edges (rise and fall) of a signal so I implemented the EXT1 wakeup too. But when the system wakes up by EXT1, if I use only the esp_sleep_enable_ext1_wakeup function to come back to sleep the timer wakeup is disabled, so I need to know how many seconds remains to the next timer wakeup and use them with the esp_sleep_enable_timer_wakeup function.

How can I keep the deep sleep timing when other wakeup source occurs?

Who is online

Users browsing this forum: No registered users and 54 guests