This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

universal MQTT / Timer / Localbus event loop
#8
(23.09.2020, 14:20)myg Wrote:
(23.09.2020, 01:26)benanderson_475 Wrote: if i want to stop a timer from the resident script callback function how can i realize this? 
Many Thanks

I've updated library code, you can now call
Code:
timer:stop()
when you need it to be permanently stopped

Note that this also removes timer from the event loop, as a side effect, when you have nothing to run, the loop will exit, but resident script will be restarted after specified delay and everything will start over.

@myg Many thanks,
Reply


Messages In This Thread
RE: universal MQTT / Timer / Localbus event loop - by benanderson_475 - 28.09.2020, 04:44

Forum Jump: