how to detect error and restart microcontroller for embedded system with Esp 12 or Esp 32

Thread Starter

dashhossein

Joined Jul 30, 2020
49
one thing that make me confused is how the microcontroller notice the errors and restart by itself
let me give an example
we have cooler system with Esp 32 and temperature sensor,when temperature be Above 25 centigrade degrees cooler will work until temperature reduce to 25 degree .
all the thing will work in the loop .

for example after 1 week of work errors come to esp , how is possible that Esp notice the error and restart automatically for fixing the error .

i don't want restart the board manually
 

MrChips

Joined Oct 2, 2009
30,618
If an unrecoverable error is detected by the program, go to the start of your program (make sure the stack is reset).
 
Top