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
triggersconfiguration. - Determine the index of which item in the
triggersarray 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
triggersproperty to the updated array (with thenullitem 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.