cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

ThingWorx MQTT Extension and DataChanged Events

gwhite-21
7-Bedrock

ThingWorx MQTT Extension and DataChanged Events

I'm working with the ThingWorx MQTT extension on version 7.2, and I'm finding that updates to properties via MQTT topics aren't firing DataChanged events on my Things. Manual changes to the properties the topics are bound to fire the DataChanged events. For example, if I use the String type of the data coming from MQTT, I can alter the value and see a subscription on the object change. But if that same change happens via the MQTT topic, no event is fired, even though the property data is updated.

Is there a way to see catch property changes when MQTT topics update a property?

Thanks,

G

ACCEPTED SOLUTION

Accepted Solutions

I dug into this a bit more and figured out the issue. The DataChanged event was firing on the property being updated via MQTT topic. However, the System user was then trying to update another property on the same Thing, but didn't have permissions to write to that property (the default). I solved this by adding property write permissions for the System user account on the Thing Template runtime instances. After that, the updates worked as expected.

View solution in original post

1 REPLY 1

I dug into this a bit more and figured out the issue. The DataChanged event was firing on the property being updated via MQTT topic. However, the System user was then trying to update another property on the same Thing, but didn't have permissions to write to that property (the default). I solved this by adding property write permissions for the System user account on the Thing Template runtime instances. After that, the updates worked as expected.

Announcements


Top Tags