Search found 2 matches

by Rostyslav
Wed Apr 04, 2018 2:49 pm
Forum: ESP32 Arduino
Topic: wakeup_cause() from light sleep
Replies: 2
Views: 4530

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...
by Rostyslav
Tue Apr 03, 2018 9:34 pm
Forum: ESP32 Arduino
Topic: wakeup_cause() from light sleep
Replies: 2
Views: 4530

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.