finding an esp32 wakeup source #17820
-
I normally use machine.reset_cause to log deepsleep wakeups but my current project also has a esp32.wake_on_ext0 so I can't tell the difference between a time expired wake from deepsleep & a pin triggered wakeup. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
There is as well machine.wake_reason(), which can tell the difference between WLAN_WAKE, PIN_WAKE and RTC_WAKE. |
Beta Was this translation helpful? Give feedback.
-
Tnx Rob, that works. I'm countin' myself lucky since it's the only one that does!
|
Beta Was this translation helpful? Give feedback.
-
Well I thought I was sure, so much so that I had 2 different lookup dics, one for when I was running from the cmd line in the repl & the other for when I was running a program from the esp32. However after multiple cycles of
both ways I can't force the same anomaly. Will report back if it occurs again organically. |
Beta Was this translation helpful? Give feedback.
There is as well machine.wake_reason(), which can tell the difference between WLAN_WAKE, PIN_WAKE and RTC_WAKE.