Skip to main content
1-Visitor
May 13, 2020
Solved

QueryPropertyHistory Service does not show values

  • May 13, 2020
  • 17 replies
  • 5683 views

Hi,

 

Via MQTT the property "Speedometer" gets every 10 seconds a new value which is in json format. All the other properties have a subsciption to the "Speedometer" property and so they change their values every 10 seconds too.

 

When I run the Service QueryPropertyHistory no values are displayed. The Thing and its template have a Value Stream and all the properties are persistent and logged. 

Best answer by Constantine

Then try to add your MQTT user to Administrators group temporarily -- if that works, then you just need to find where you missed some access rights. Adding debug statements to your subscriptions and monitoring Application and Script logs for errors should help you with identifying the culprit.

 

If nothing seems to help -- try to grant your MQTT user as much permissions as possible (for example, full access on collections level) until it works, and then start to take them away until it breaks -- this approach works well for me when I'm stuck with permissions.

 

/ Constantine

17 replies

18-Opal
May 14, 2020

Hello @Lenn,

 

I'm sorry for a stupid question, but I have to ask it -- you run this service on the thing with those properties, don't you? Not on the value stream itself.

 

Regards,
Constantine

Lenn1-VisitorAuthor
1-Visitor
May 14, 2020

Hi Constantine,

 

yes I run it on the thing

18-Opal
May 14, 2020

And do you specify any parameters?

Support
June 24, 2020

Hi @Lenn.

 

If one of the previous responses allowed you to resolve your issue, please mark the appropriate one as the Accepted Solution for the benefit of others with the same issue.

 

Thank you for your participation in our community!

 

Regards.

 

--Sharon