diff --git a/test.lua b/test.lua index 69c354c..9388882 100644 --- a/test.lua +++ b/test.lua @@ -30,7 +30,12 @@ tmr.alarm(0, 100, 1, function() else tmr.stop(0) print('IP: ',wifi.sta.getip()) - + -- Initaly set the time startTimeupdate() + + -- Update the time each minute + tmr.alarm(1, 60000, 1, function() + startTimeupdate() + end) end end) \ No newline at end of file