Commit b006607e authored by olivier R-D's avatar olivier R-D

fix parsing of EventNotifier in standard address space

parent b85e2c41
......@@ -19843,7 +19843,7 @@ def create_standard_address_space_Part5(server):
node.TypeDefinition = ua.NodeId.from_string("i=2004")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("Server")
attrs.EventNotifier = False
attrs.EventNotifier = 1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
......@@ -108,7 +108,8 @@ class XMLParser(object):
elif key == "IsAbstract":
obj.abstract = val
elif key == "EventNotifier":
obj.eventnotifier = True if val == "true" else False
print("Notfiier", key, val)
obj.eventnotifier = 1 if val == "1" else 0
elif key == "ValueRank":
obj.rank = int(val)
elif key == "ArrayDimensions":
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment