Skip to main content
1-Visitor
August 22, 2022
Solved

MQTT extension and DataChange Event not triggering

  • August 22, 2022
  • 1 reply
  • 1064 views

Hello,

 

I am retrieving data from a MQTT Broker. The broker is well connected, the data is in the property.
However, the DataChange event does not trigger when i am receiving new data.
I followed multiple links:

https://community.ptc.com/t5/ThingWorx-Developers/Datachange-event-not-firing-with-MQTT/td-p/741511

https://community.ptc.com/t5/ThingWorx-Developers/ThingWorx-MQTT-Extension-and-DataChanged-Events/td-p/522407

https://community.ptc.com/t5/ThingWorx-Developers/DataChange-Problem-with-Subscription/td-p/709944

 

However, none of them solved anything, my subscriptions does not even start (I verify It using logger.debug())

Does anyone have an idea on how to fix this ?

Best answer by smainente

This is generally due to permission - the MQTT Thing is running as a special system user.

Maybe try https://www.ptc.com/en/support/article/cs275831

 

1 reply

smainente16-PearlAnswer
16-Pearl
August 22, 2022

This is generally due to permission - the MQTT Thing is running as a special system user.

Maybe try https://www.ptc.com/en/support/article/cs275831