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.

LUA timers explanation
#2
Describe your task in more detail. It all depends on what kind of timer is needed and what additional logic is there. Scheduled script can be ok for longer time periods where timer precision does not matter much. timerfd + select provides the best precision but the script becomes more complex.
lb:step() receives a single telegram until a timeout happens while lb:loop(timeout) receives multiple telegrams until the specified timeout expires.
Reply


Messages In This Thread
LUA timers explanation - by Bitver - 31.07.2024, 05:36
RE: LUA timers explanation - by admin - 31.07.2024, 05:57
RE: LUA timers explanation - by Bitver - 31.07.2024, 06:26
RE: LUA timers explanation - by admin - 02.08.2024, 09:25

Forum Jump: