Skip to content

Commit 57020d2

Browse files
authored
Update uatypes.py (#1094)
* Update uatypes.py * Update uatypes.py * Update uatypes.py
1 parent bb748c2 commit 57020d2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

opcua/ua/uatypes.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -891,8 +891,8 @@ class DataValue(FrozenClass):
891891
('ServerTimestamp', 'DateTime'),
892892
('ServerPicoseconds', 'UInt16'),
893893
)
894-
895-
def __init__(self, variant=None, status=None):
894+
895+
def __init__(self, variant=None, status=None, sourceTimestamp=None, sourcePicoseconds=None, serverTimestamp=None, serverPicoseconds=None):
896896
self.Encoding = 0
897897
if not isinstance(variant, Variant):
898898
variant = Variant(variant)
@@ -901,10 +901,10 @@ def __init__(self, variant=None, status=None):
901901
self.StatusCode = StatusCode()
902902
else:
903903
self.StatusCode = status
904-
self.SourceTimestamp = None # DateTime()
905-
self.SourcePicoseconds = None
906-
self.ServerTimestamp = None # DateTime()
907-
self.ServerPicoseconds = None
904+
self.SourceTimestamp = sourceTimestamp
905+
self.SourcePicoseconds = sourcePicoseconds
906+
self.ServerTimestamp = serverTimestamp
907+
self.ServerPicoseconds = serverPicoseconds
908908
self._freeze = True
909909

910910
def __str__(self):

0 commit comments

Comments
 (0)