Skip to main content
12-Amethyst
July 20, 2016
Solved

How to get/retrieve the latest properties values of RemoteThing on platform?

  • July 20, 2016
  • 1 reply
  • 2219 views

I am observing that every time, I start my Java SDK edge client, the properties of the bound things start as blank/uninitialized. When I set the properties using setProperty(), these values reflect in the RemoteThings on the platform. My question is how do I get the latest property values populated in the VirtualThing bound to RemoteThing at the startup of Java SDK edge client?

Or the question simply is - how do I get/retrieve the RemoteThing properties for a bound VirtualThing from Java SDK?

Best answer by mhollenbach

Try reading through this: https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS219393&lang=en_US

The Java SDK always initializes it's property values to 0 on restart unless told not to, so what you need to implement is a quick property get from the RemoteThing on the ThingWorx server to retrieve the last known values of the properties.

Meghan

1 reply

5-Regular Member
July 20, 2016

Try reading through this: https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS219393&lang=en_US

The Java SDK always initializes it's property values to 0 on restart unless told not to, so what you need to implement is a quick property get from the RemoteThing on the ThingWorx server to retrieve the last known values of the properties.

Meghan