From f092c2ea09d7ed3e0edc4a8c2566f0e95fc88713 Mon Sep 17 00:00:00 2001 From: ollo Date: Tue, 12 Apr 2016 18:16:16 +0200 Subject: [PATCH] Time is checked each minute --- test.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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