29.01.2025, 07:56
Per-message timeout is specified when creating localbus instance via new(timeout). Default timeout is 1 second.
step does not accept any arguments. It uses the per-message timeout.
When using loop the per-message timeout should be low enough otherwise the total function call time might be longer. For example if per-message and loop timeouts are set to 1 then loop can take from 1 to 2 seconds to complete.
You can also use copas library or socket.selectfds:
https://kb.logicmachine.net/scripting/sh...g-dimming/
https://kb.logicmachine.net/scripting/si...ble-press/
step does not accept any arguments. It uses the per-message timeout.
When using loop the per-message timeout should be low enough otherwise the total function call time might be longer. For example if per-message and loop timeouts are set to 1 then loop can take from 1 to 2 seconds to complete.
You can also use copas library or socket.selectfds:
https://kb.logicmachine.net/scripting/sh...g-dimming/
https://kb.logicmachine.net/scripting/si...ble-press/