Is there any support for a watchdog timer in the Create?
I noticed in the Element's programmer's guide there's support for a watchdog timer that can restart the device if the application crashes:
The wdt (watchdog timer) object monitors device activity. If it detects that the device has been blocked for an extended period of time, the watchdog timer assumes the application has crashed, and restarts the device.
import wdt from "watchdogtimer";
The length of time the watchdog timer waits before deciding the application has crashed depends on the mode of operation. It is always at least 5 seconds..."
Is there any support for this in the Create? -- When I try to use the import statement above in my Create app it throws a big error:
[DEBUG]: Connecting to debug client [DEBUG]: Remote connection established... [DEBUG]: Uploading file (src/main.js) [DEBUG]: Launching application (testHello) hello from my app. can I make a watchdog timer?### BREAK: require: module "watchdogtimer" not found! (main.js:6) [DEBUG]: Disconnecting from debug client