how can i reset the variables data into specified asset when the mqtt agent is not connected?
Example: if MQTT is connected he set the bool variable on TRUE, and if the connection is down he has to change back to FALSE.
I’ve checked inside When/Then and Flow Rules but still haven’t found nothing
We have a nice new feature for that.
On the users page, go to your service user and you will see that there is an active MQTT connection. You can use that state - if the user has an active connection - on an asset attribute.
Add a boolean attribute to represent the MQTT connection status
Add the configuration item ‘user connected’ to that attribute
Fill in the service users username
Save the asset
If you also give this attribute rule state, you can use it in rules to trigger other actions.