Skip to main content
1-Visitor
January 28, 2022
Solved

MQTT subscription won't refresh values on Mashups

  • January 28, 2022
  • 1 reply
  • 1501 views

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

Best answer by PaiChung

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'

 

1 reply

PaiChung22-Sapphire IAnswer
22-Sapphire I
January 28, 2022

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'

 

1-Visitor
January 31, 2022

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

 

Thanks