23:24, EEST
February 21, 2014
Hello,
when subscribing to dataChanges using an OPC UA client based on the SDK 4.8.0, the returned dataValues in the listener always return “null” for the ServerTimestamp. Other clients return a non-null value. Is there a configuration to choose the timestamps or is this the intended behavior?
Thanks,
Hans-Uwe
9:43, EEST
April 3, 2012
Hi,
Yes, Subscription.setTimestampsToReturn(TimestampsToReturn.Both), with default value being TimestampsToReturn.Source.
It is not item-specific parameter: https://reference.opcfoundation.org/Core/Part4/5.12.2/#5.12.2.2, or well, there is multiple ways to think it, but at least it must be the same for a single bulk-createmonitoreditems, thus probably why it was made like this (changing it before adding items would cause items to use that one; though on a reconnect if the subscription was redone every item would use the setting of that time, thus in practice this value should be only set once before adding any items to the subscription).
15:40, EEST
December 21, 2011
And to continue. Typically, ServerTimestamp is not very useful, when you monitor data changes. You probably want to know when the value changed (SourceTimestamp) and not when the server was last checking it (ServerTimestamp). That’s why the default configuration is to leave it out from the communication and save bandwidth for more useful data 🙂
But as said, you can enable it, if you need it.
Most Users Ever Online: 518
Currently Online:
14 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 142
pramanj: 86
rocket science: 85
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 724
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1496
Posts: 6353
Newest Members:
armandovarley, dole, rustyhammer, braydenaquino6, blaircleveland0, maribelkeeler7, Nicky, rickymeade2, niamhtoussaint0, adamq0505309Moderators: Jouni Aro: 1017, Pyry: 1, Petri: 0, Bjarne Boström: 1003, Jimmy Ni: 26, Matti Siponen: 337, Lusetti: 0
Administrators: admin: 1