Just a normal E.enableWatchdog(2) should be ok I think? That turns on 'auto' mode so Espruino will keep kicking it automatically.
You can't turn the watchdog off once it's been turned on - it's a hardware safety thing. To stop it you need to fully reboot the device and then not run E.enableWatchdog
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Just a normal
E.enableWatchdog(2)
should be ok I think? That turns on 'auto' mode so Espruino will keep kicking it automatically.You can't turn the watchdog off once it's been turned on - it's a hardware safety thing. To stop it you need to fully reboot the device and then not run
E.enableWatchdog