Skip to main content
1-Visitor
Apr 5, 2019 4:47 AM UTC
Question

Thing's property value is not being the latest of the logged values

How do i make the thing's properties to have latest of logged values?

Because, in general, when the properties are logged, they should possess latest of the logged values. I have assigned the value stream and 'QueryPropertyHistory' service returns me the historical data yet, the properties are not possessing latest of the logged values. How to resolve this issue??

3 replies

22-Sapphire I
Apr 5, 2019 5:37 PM UTC

Most current value in your query should be the value of the property itself.

I would check the TimeStamp on both the historical and the property

You can use GetPropertyValuesVTQ for that 

Translate
muzzammil1-VisitorAuthor
1-Visitor
Apr 8, 2019 11:08 AM UTC

@PaiChung What i actually meant was, i just need the latest of the logged property values under properties and alerts tab in every 'Thing' entities, which i'm currently not getting

Translate
22-Sapphire I
Apr 8, 2019 4:33 PM UTC

those values should be in sync unless you had to go through some system restart or thingshape/thingtemplate update that reset the property values

Translate