Remote property not getting update with cacheTime=0
Greetings,
I have a remote property "Temperature" bound to a property on a VirtualThing. I want the value to be pushed to the server every time and the corresponding Remote Thing to read from property cache to avoid fetching the value each time. I have the cacheTime set to zero and pushType to ALWAYS.
My edge code updates the property every 3 seconds with some random value...however, when i refresh the property values on the Remote Thing in Thingworx, they never change. If i change the cacheTime to a value greater than zero...such as 1000, the values are reflected when i refresh the property values. I understand this is because after 1 second, the value expires in the cache and i suppose at that point is fetches a new value.
// This property is setup for collecting time series data. Each value
// that is collected will be pushed to the platform from within the
// processScanRequest() method.
@ThingworxPropertyDefinition(name="Temperature",
description="The device temperature",
baseType="NUMBER",
aspects={"dataChangeType:NEVER",
"dataChangeThreshold:0",
"cacheTime:0",
"isPersistent:FALSE",
"isReadOnly:TRUE",
"isFolded: FALSE",
"pushType:ALWAYS",
"defaultValue:-999"}),
I suppose a cacheTime of -1 means always fetch from the edge.
I guess i thought that the cache would get updated by the data push and therefore the Remote Thing would only ever have to read from the cache.
Apparently this is not what happens.
There is a related post here: Setting a remote property from the edge
