Using a watchdog is a way to protect your solution bugs like infinite loop or unexpected end of execution.
+
+
Without notification of the user code signaling its current --and continuing-- code execution, the watchdog will restart the entire system (aka Reset the MCU).
+
+
Please note that once started, a watchdog cannot be disabled!
+
+
Most of microcontroler do have an hardware watchdog. Once the watchdog started (its timeout set), do not forget to update it (feed it) before it reach the timeout... otherwise it will reset the microcontroler.
+
+
The example [async-watchdog.py](https://github.com/mchobby/micropython-mydin/blob/main/examples/din_controlers/common/async-watchdog.py), visible here below, shows how to activate the watchdog. As it is feed at every execution of the ''userloop'', no need to call the {{fname|din.feed_watchdog()}} .