As the title says... Chat on...

User avatar
By obenavidez
#54981 Hello, i want to execute a task every 5 minutes in my nodemcu, but i'm newbie, please if you could give me some example about how can i get that working, i will be very thankful.


Sincerely
User avatar
By marcelstoer
#54996 http://nodemcu.readthedocs.io/en/master ... /#tmralarm

Code: Select allif not tmr.alarm(0, 300000, tmr.ALARM_AUTO, function()
  print("5min is up")
end)
then print("failed to create timer")
end
User avatar
By obenavidez
#63790
marcelstoer wrote:http://nodemcu.readthedocs.io/en/master/en/modules/tmr/#tmralarm

Code: Select allif not tmr.alarm(0, 300000, tmr.ALARM_AUTO, function()
  print("5min is up")
end)
then print("failed to create timer")
end



Thanks a Lot it really works perfect, i'm sorry for the really late answer but i stopped the project and now i restart it an now i see your answer, thank you again marcelstoer. :D :D :D