Hi everyone,
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
Hi Denis,
thanks for you responde, there is a way to do on openremote? I can’t change the config on my MQTT device so the only options is on the IoT Portal
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.
yes, solved using Last Will.
We’ve configured a bool var witch stay true if the mqtt is connected or it will become false.
Using the When/Then rule i reset all the variables