Time is checked each minute

This commit is contained in:
ollo 2016-04-12 18:16:16 +02:00
parent 7e999fc4bd
commit f092c2ea09

View File

@ -30,7 +30,12 @@ tmr.alarm(0, 100, 1, function()
else else
tmr.stop(0) tmr.stop(0)
print('IP: ',wifi.sta.getip()) print('IP: ',wifi.sta.getip())
-- Initaly set the time
startTimeupdate() startTimeupdate()
-- Update the time each minute
tmr.alarm(1, 60000, 1, function()
startTimeupdate()
end)
end end
end) end)