Skip to main content
Jan 28, 2022 8:17 PM UTC
Solved

MQTT subscription won't refresh values on Mashups

I am using Thingworx 8, with the MQTT extension

 

I connected my Thing to the broker, with a property "Test" that works correctly

 

But then I made a mashup showing that value in a Label Widget. It only updates if I press F5 on my web browser.

 

when I go to the thing's properties, I can see the value correctly updates

 

In the mashup I have used GetProperties, with "Automatically update values when enable" checked. I also used an AutoRefresh Widget, but nothing works.

 

I created a subscription on another thing, to the property "Test" on Data Change. It never activates the subscription

PaiChungAnswer
Jan 28, 2022 8:53 PM UTC

If you are using AutoRefresh, make sure you disable the 'push automatically'

It might be that the system isn't recognizing what is happening as an update due to perhaps the type of field the values are in.

Otherwise check the error logs, perhaps it can't establish a connection to do the 'push automatically'

 

2 replies

PaiChungAnswer
Jan 28, 2022 8:53 PM UTC

If you are using AutoRefresh, make sure you disable the 'push automatically'

It might be that the system isn't recognizing what is happening as an update due to perhaps the type of field the values are in.

Otherwise check the error logs, perhaps it can't establish a connection to do the 'push automatically'

 

Jan 31, 2022 5:17 PM UTC

I unchecked the  "Automatically update values when enable", and left the AutoRefresh widget. Now it works

 

Thanks