We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b00389a commit d4c3b31Copy full SHA for d4c3b31
opcua/ua/uatypes.py
@@ -615,6 +615,12 @@ class ExtensionObject(FrozenClass):
615
:vartype Body: bytes
616
"""
617
618
+ ua_types = {
619
+ "TypeId": "NodeId",
620
+ "Encoding": "Byte",
621
+ "Body": "ByteString"
622
+ }
623
+
624
def __init__(self):
625
self.TypeId = NodeId()
626
self.Encoding = 0
@@ -624,7 +630,7 @@ def __init__(self):
630
def to_binary(self):
631
packet = []
632
if self.Body:
627
- self.Encoding |= (1 << 0)
633
+ self.Encoding = 0x01
628
634
packet.append(self.TypeId.to_binary())
629
635
packet.append(uabin.Primitives.UInt8.pack(self.Encoding))
636
0 commit comments