FreeOpcUa / opcua-asyncio

OPC UA library for python >= 3.7
GNU Lesser General Public License v3.0
1.11k stars 358 forks source link

DataTypeEncoding object pointed by the "HasEncoding" links should have node class Object instead of ObjectType #1549

Closed erossignon closed 8 months ago

erossignon commented 8 months ago

Describe the bug

Found while investigating node-opcua/issue1232

https://github.com/FreeOpcUa/opcua-asyncio/blob/f48b4f51fda55b67d3106ff6800e868c4e060fec/asyncua/common/manage_nodes.py#L401

should be Object and not ObjecType

To Reproduce
Use example.py

Expected behavior

Screenshots
actual image The DataTypeEncoding instance is wrongly set to nodeClass=ObjectType image

Expected ( like in any other companion specification ) The DataTypeEncoding instance should be nodeClass=Object

image

Version
Python-Version: 3.x opcua-asyncio: 1.0.6

rempAut commented 7 months ago

Looks like also fixes #1524