31.07.2024, 05:57
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.
lb:step() receives a single telegram until a timeout happens while lb:loop(timeout) receives multiple telegrams until the specified timeout expires.