Logic Machine Forum
pause event script - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: pause event script (/showthread.php?tid=2974)



pause event script - Frank68 - 12.11.2020

Hello

In case there is a bus reset or a disconnection, if possible I would like the event scrips to be evaluated after a certain settable period at bus return, otherwise I would have suffered a series of alarms, how can this be done?

Thanks


RE: pause event script - admin - 12.11.2020

This is not possible. You can add some extra checks so your scripts do not continue execution if a certain condition is not met.
Something like this, but you will need another script to control the bus_connected variable state.
Code:
if not storage.get('bus_connected') then
  return
end
-- rest of the script