This repository was archived by the owner on Dec 24, 2017. It is now read-only.
forked from jadonk/bonescript
-
Notifications
You must be signed in to change notification settings - Fork 9
Watchdog Timer
Aditya Patadia edited this page Mar 21, 2015
·
1 revision
BeagleBone has in-built watchdog functionality. The helper function provides way to enable or disable watchdog timer. If the timer is enabled and the board becomes unresponsive for 60 seconds, it will automatically reboot.
- starts watchdog timer. callback first argument is 'verror' object or null
Example
var b = require('octalbonescript'); //load the library
b.startWatchdog(function(err){
if(err){
console.error(err.message);
}
});
- stops watchdog timer. callback first argument is 'verror' object or null
Example
var b = require('octalbonescript'); //load the library
b.stoptWatchdog(function(err){
if(err){
console.error(err);
}
});