Replies: 1 comment 2 replies
-
https://reference.opcfoundation.org/v104/Core/docs/Part4/7.7.1/ if you create an DataValue you can set the servertimestamp aswell! "self" is like "this" in js ^^ |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I think this is a minor question, however I stuck.
I have a variable with the following DataValue:
DataValue(Value:Variant(val:36,type:VariantType.Int64), StatusCode:StatusCode(Good), SourceTimestamp:2021-06-04 14:22:47.425125)
My client (free opc-ua gui client) lists the SourceTimestamp in UTC, which is 2 hours earlier than my Timezone. I figured that I can fix it with
.set_data_value()
However, I´m confused with the syntax in the definition: What does self mean?
def set_datavalue(self, value, varianttype=None):
Also, the ServerTimestamp is None. How can that be changed? (If needed)
Any help is welcome!
Beta Was this translation helpful? Give feedback.
All reactions