wakeup_cause() from light sleep
wakeup_cause() from light sleep
Hi, it seems that the esp_sleep_get_wakeup_cause() does not work with light sleep. Is there a way to identify wakeup cause from light sleep? Thanks.
Re: wakeup_cause() from light sleep
Probably it is blocked by https://github.com/espressif/esp-idf/bl ... #L495-L497
Maybe rtc_get_wakeup_cause
Maybe rtc_get_wakeup_cause
Re: wakeup_cause() from light sleep
You're right. The rtc_get_reset_reason(0) should return DEEPSLEEP_RESET for this function to work. Otherwise it returns "UNDEFINED", which is exactly what I get. So, it is intentionally made to work only with deep sleep. Is there a reason for that? The rtc_sleep_wakeup_cause returns the same decimal number regardless of the cause (I use two sources - a timer and GPIO wakeup)
Who is online
Users browsing this forum: No registered users and 100 guests