-
I want to use deepsleep on a project and was hoping someone has some I currently used lightsleep on a ESPNow link, wake up every minute and pat Correct me, if I have this wrong. What will happen to an ESP32 in deepsleep if something crashes somewhere, will |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 14 replies
-
This question is too broad. When your power supply "crashes", the ESP32 will stop working too (of course). There are only minor differences between a hard reset and coming out of deep sleep. However, you need to ensure (by your software watchdog, perhaps) that the ESP32 really enters deep sleep after your program did it's thing. |
Beta Was this translation helpful? Give feedback.
-
OK, but there is very little you can do about a not working or not booting device without external supervision. Most likely, any error during boot after deep sleep will also prevent a clean boot by machine.reset() and the like. If it is really that important (e.g. live-saving) that the device comes out from deep sleep, you could add one or more ESP32 and work out some logic so at least one of them performs it's function. |
Beta Was this translation helpful? Give feedback.
This question is too broad. When your power supply "crashes", the ESP32 will stop working too (of course).
There are only minor differences between a hard reset and coming out of deep sleep.
In my opinion, an ESP32 not waking up from a timed deep sleep is the least thing you need to worry about when designing a high-available system.
Even that can be fixed by an external watchdog doing a reset after two hours or so - at the cost of some microamperes for the watchdog.
However, you need to ensure (by your software watchdog, perhaps) that the ESP32 really enters deep sleep after …