Task watchdog got triggered
- ESP32
You may see
Why it happens
- A
whileloop with no pause. - Waiting a long time inside an async web handler or interrupt.
How to fix it
- Put
delay(1);oryield();inside long loops. - Set a flag in the handler and do the slow work in
loop().
It worked if: No restart for a few minutes.
Related errors
From the official documentation. From Espressif's watchdog documentation. Sources: Espressif: watchdogs.
Didn't help? Search another error or ask us.

