Страница 1 из 1

[Сценарий] ArduinoTimeUpdate

Добавлено: Чт июл 03, 2014 10:46 am
PAV

Код: Выделить всё

$arip = gg("Arduino.IP");
$timePC=time();
$cmdUrl = "http://". $arip. "/command?99,". $timePC;
getURL($cmdUrl,0);
ClearTimeOut("sendTime"); 
$alive_timeout=1*60*60;
setTimeOut("sendTime","runscript('ArduinoTimeUpdate');", $alive_timeout); 
say("Arduino time updated",0);