Skip to content

Commit b934a49

Browse files
helmut-jacoboroulet
authored andcommitted
Make sure NodeClass attribute is of type UInt32
All other places use UInt32 for NodeClass. Make sure this is consistent.
1 parent 0729c9c commit b934a49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

opcua/server/address_space.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def _add_node_attributes(self, nodedata, item, add_timestamps):
257257
ua.DataValue(ua.Variant(item.BrowseName, ua.VariantType.QualifiedName))
258258
)
259259
nodedata.attributes[ua.AttributeIds.NodeClass] = AttributeValue(
260-
ua.DataValue(ua.Variant(item.NodeClass, ua.VariantType.Int32))
260+
ua.DataValue(ua.Variant(item.NodeClass, ua.VariantType.UInt32))
261261
)
262262
# add requested attrs
263263
self._add_nodeattributes(item.NodeAttributes, nodedata, add_timestamps)

0 commit comments

Comments
 (0)