Skip to main content
1-Visitor
November 2, 2015
Solved

setProperty method

  • November 2, 2015
  • 1 reply
  • 2899 views

Hello community,

I'm trying to figure out how does the property synchronization mechanism work.

I'm using TW 6.5 and the Java SDK.

If I understand well VALUE,TIME; QUALITY property is associated to each property update EVEN IF you don't specify them explicitly. I assume this because you can always invoke the "/Thingworx/Things/ThingName/PropertiesVTQ" REST API method on a Thing property.

In particular how does the setPropertyValue() method work?

I guessing this: setPropertyValue()  assumes currentTime taken at the invocation time of the setPropertyValue(), and it assumes quality GOOD.

Am I guessing right?

Giuliano

Best answer by mvonhasselbach

You're guessing right! The default value for the time is the currentTime when setProperty() is invoked, default for quality is GOOD.

1 reply

12-Amethyst
November 3, 2015

You're guessing right! The default value for the time is the currentTime when setProperty() is invoked, default for quality is GOOD.

1-Visitor
November 3, 2015

A follow-up question: if you log a specific property in a Stream or ValueStream, is the "Quality" information logged ?

Giuliano

5-Regular Member
November 3, 2015

It should, by default. There is a service called GetPropertyQuality on both Streams and ValueStreams which gives you the quality values for a specific property.