-
I've added a task to core 0 on the ESP32. This task has an endless loop. On every iteration I call However, the watchdog is still triggered:
When this happens, the task isn't doing anything, the code is skipped and after that it yields using The code relies on polling WiFiClient so it needs to run on regular intervals as there is no event callback. I suppose 'just yielding' starves the idle task? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Found it:
|
Beta Was this translation helpful? Give feedback.
Found it:
taskYIELD
yields to tasks with the same priority or higher. So it doesn't yield to the idle task.delay(1)
and variants block the active task so the idle task can run and feed the watchdog.