OPCFoundation / UA-Java-Legacy

This repository is provided by OPC Foundation as legacy support for an Java version for OPC UA.
https://github.com/OPCFoundation/UA-.NETStandard
Other
354 stars 226 forks source link

Get NodeID from BrowseName #216

Open WanoKimano opened 3 years ago

WanoKimano commented 3 years ago

Hello everyone! Sorry for my English I am developing OPC UA Client for android. To read node values im using NodeId (int namespace, int value) with NodeId identifier. How can i create NodeId with BrowseName? For example: ReadValueId(new NodeId(2, 11), Attributes.Value, null, null)); - it works ReadValueId(new NodeId(2, "resist_leak"), Attributes.Value, null, null)) - it does'nt work

jouniaro commented 3 years ago

NodeId and BrowseName are not compatible with each other. You can check TranslateBrowsePathsToNodeIds service, if that is what you are looking for.