Class WDT – Watchdog timer¶
When the program crashes and eventually enters an unrecoverable state, WDT is used to restart the system. Once started, it cannot be stopped or reconfigured in any way.
After activation, the program must periodically feed
to prevent it from expiring and reset the system.
Example:
from machine import WDT
wdt = WDT() # enable it with a wdt
wdt.feed()