cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

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

SajidPatel
8-Gravel

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

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?

1 ACCEPTED SOLUTION

Accepted Solutions
mhollenbach
5-Regular Member
(To:SajidPatel)

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

View solution in original post

1 REPLY 1
mhollenbach
5-Regular Member
(To:SajidPatel)

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

Top Tags