-
Hi folks, Also, I wanted to better understand timestamps within asyncua.
I'm using asyncua 0.98. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
2: did you create the datavalue on your own? because you can set it there 3/4: depends on the CreateMonitoredItems Request -> timestampsToReturn EnumTimestamps ToReturn An enumeration that specifies the timestamp Attributes to be transmitted for each MonitoredItem. The TimestampsToReturn enumeration is defined in 7.40.When monitoring Events, this applies only to Event fields that are of type DataValue. |
Beta Was this translation helpful? Give feedback.
-
Thank you, @AndreasHeine .
(2/3/4) I've now learned that asyncua doesn't automatically update ServerTimestamp with Lesson learned. Thanks!! |
Beta Was this translation helpful? Give feedback.
Thank you, @AndreasHeine .
(1) Understood about the UDP. Let me know if you suggest something else in the current implementation.
(2) All the opcua-asyncio repository examples do not update ServerTimestamps (date is fixed as Dec/31/2000).
(3/4) I'm probably asking too much, but could you provide an example? I checkedasyncua/common/subscription.py
, and thecreate_monitored_items()
already hasparams.TimestampsToReturn = ua.TimestampsToReturn.Both
. I don't know what to change in order to get the Source- and Server-timestamps from the subscriptions.(2/3/4) I've now learned that asyncua doesn't automatically update ServerTimestamp with
write_value()
like it does with SourceTimestamp! And th…