Skip to main content
10-Marble
January 15, 2023
Solved

MQTT Extension values does not refresh Mashup

  • January 15, 2023
  • 1 reply
  • 4767 views

I have added MQTT Extension 3-1-0 to Thingworx 9.3 platform, and trying to show in a little mashup the temp value from MQTT ESP8266 publisher.

 

I receive a temperature value mapped ok to the MQTT Thing, I test that values transferred values are shown when refreshing as 

 

My problem is that this value is not refreshed into a LED widget... The refresh only happens when I uptate manually the value from console, but not when values are changed from MQTT subscriber.

 

Why values are not refreshed?

 

 

 

Best answer by alcubierre

Solved. Simply assign runtime permissions to system (execute and subscribe) to thing.

 

https://community.ptc.com/t5/ThingWorx-Developers/Error-Executing-Event-Handler-ForwardEvent-for-event-Type-Thing/td-p/732013

1 reply

15-Moonstone
January 16, 2023

I assume because you do not use the "GetProperties" service of the thing containing the values with the "Automatically update when able" option. In this case you only calling the service for retrieving the values once.

 

See also: https://support.ptc.com/help/thingworx/platform/r9/en/index.html#page/ThingWorx/Help/Mashup_Builder/Mashups/MashupAutoUpdate.html

10-Marble
January 16, 2023

I have the getProperties in place, I have followed the Fundamentals Overview tutorial but retrieving from the new field comming from MQTT.

 

I have attached all views from compose to show all configurations.

 

Summarizing:

1) ESP8266 delivers HeatPreMQTT, this field is refresing in properties perfectly inside ReflowOven that is based upon MQTT thing Template.

2) New Mashup with Led, I add data from ReflowOven, use GetProperties.preHeatMQTT and bind this property to data from leddisplay-9 with "Automatically values when able" to data activated.

 

But nothing changes in the mashup, Instead it changes always to 0. Refreshing page, new view mashup, nothing changes.

15-Moonstone
January 16, 2023

Can you check if you have any errors in the script or application log? Also please look at the "Application Keys" section if Thingworx created some temporary application keys when you opened the mashup.