Skip to main content
1-Visitor
October 26, 2022
Solved

Values not saved when using MQTT

  • October 26, 2022
  • 2 replies
  • 2466 views

Hi, I am using the MQTT template to subscribe to MQTT values, but when I query for property history I only get the values which I set manually. I think it's a permission problem. Any help is appreciated. Thank you!

Best answer by BSUN_RO

I found the answer in this articles.

https://community.ptc.com/t5/ThingWorx-Developers/DataChange-Problem-with-

Subscription/td-p/709944

https://www.ptc.com/en/support/article/CS270968

2 replies

22-Sapphire I
October 26, 2022

Do you have the 'DataChange' for the MQTT mapped property set to Always?

(Besides that, is it logged)

 

BSUN_RO1-VisitorAuthor
1-Visitor
October 26, 2022

Yes, it's set to Always. I set also Persist and Log.

22-Sapphire I
October 26, 2022

Not too sure then what the issue might be, as an alternative you can log it from a subscription to the datachange?

BSUN_RO1-VisitorAuthorAnswer
1-Visitor
October 27, 2022