We are setting up an edge device using the Java SDK. Some of the values we want to read are counters - for example cumulative running hours. During startup or reboot of the edge device we would like to read the last value stored in the cloud and continue the counter from there. However, after initialisation it seems that the Virtual Thing automatically sets the value in the cloud to 0.
Is there any way to avoid that this happens?
We have used a bound Virtual Thing and annotations to define the Thing properties
description="The desired temperature",
Immediately after this.initializeFromAnnotations();
The following returns 0 : this.getCurrentPropertyValue("Counter").getStringValue()
I have tried a few combinations of pushType settings but was not successful so far.
Many thanks in advance for your help!
I believe this article will help you: https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS254674