Код: Выделить всё
$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);