Automatic reboot and reload - aliconnect/aliconnect.sdk GitHub Wiki
A node server or controller can be configured to load the control software at boot. Th controller can also be rebooted remotely so it wil load the most recent version of the software.
Edit the control.json
configuration file
{
"require" : {
"control" : "http://192.168.0.201:80/sources/control.js"
}
}
At boot up this file is downloaded with a HTTP request and saved in the root folder. It will be required.
http.request ({ url: "http://192.168.0.135/reboot()" }, function() {
console.log('Control reboot executed');
});
or
ws.request ({ url: "http://192.168.0.135/reboot()" }, function() {
console.log('Control reboot executed');
});