Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
Persistent properties are stored in ThingWorx database while non-persistent properties are stored in memory. This means that the persistent values do not get erased or deleted if the thing restarts or platform restarts.
The persistent properties can also be retrieved in the same way as non-persistent properties.
To explain better how we can retrieve persistent data, please consider the below example:
I took a device group which has multiple devices and defined 2 persistent properties. One is serial number and the other is firmware version number. Now in a mashup builder, the user gives the serial number and the corresponding firmware version will be retrieved. I achieved this by writing services for that thing.
.
Once you select Device1, enter the serial number in the numeric entry field and click query button, the firmware version of the given serial number is displayed along with the data of device1. If we enter a wrong number, no data will be displayed. You can also set an error message instead of displaying empty values.
Similar case when we select the device2 data.
This is one way to retrieve persistent data. You can also obtain the same in many ways.