Topic RSS10:38, EEST
July 22, 2014
OfflineIf I create an array using a method like SampleConsoleServer.createAnalogItemArray(), how can I arrange to be notified when the array is modified?
I tried using a method like SampleConsoleClient.subscribe(NodeId nodeId), but that does not seem to work for array variables created by this method.
I would have expected that the client’s DataChangeListener would be notified when the server calls node.setValue() on the return value from createAnalogItemArray().
13:03, EEST
December 21, 2011
OfflineYes, it seems that the array elements are not compared, when the method checks if the value is really changing. However, it should compare the timestamps as well – depending a bit on whether you use setValue(DataValue) or setValue(Object). The latter will create a new timestamp using the current time. If you use the former, make sure that your timestamp changes.
1 Guest(s)

Log In
Register