Is there a way to clear the OPCUA trigger configuration from the losant-edge-agent.toml file from the Losant workflow?
Yes; attached is a simple workflow that demonstrates this. The process is as follows (you will need to adjust this flow to fit your use case):
- Use an Agent Config: Get Node to fetch the current
triggers
configuration. - Determine the index of which item in the
triggers
array is the one you want to remove. - Set the value of the item at that index to
null
(this is important; you must do this instead of simply removing that trigger config from the array!) - Use an Agent Config: Set Node to set the
triggers
property to the updated array (with thenull
item at the index of the trigger you want to remove).
remove-a-trigger-config-develop.flow (2.8 KB)
Bear in mind this will break any triggers deployed in any workflows that use the config you are removing.