Does your SDK provide an API call to get any or all related nodes that fall under standard OPC UA objects? I'm looking for an easy way to get all ServerStatus components (BuildDate, BuildNumber, ProductName, etc) and ServerDiagnostics components without reading each standard nodeID individually.
Best
Greg
Server status/diagnostics
Moderator: uasdkcpp
- Support Team
- Hero Member
- Posts: 3071
- Joined: 18 Mar 2011, 15:09
Re: Server status/diagnostics
Hi Greg,
There is no special API to access nodes in the Server object. They are all nodes in the address space and standard OPC UA access is used.
You can use the server internal client on the server side provided through ServerManager to read any variable value.
From the client side you can use the normal read service.
On the server side you can also use NodeManager::getNode() to get a node pointer for a NodeId. From this node you can get or set the value attribute directly. But do not forget to release the reference if you get a node pointer back.
Best Regards,
Unified Automation Support Team
There is no special API to access nodes in the Server object. They are all nodes in the address space and standard OPC UA access is used.
You can use the server internal client on the server side provided through ServerManager to read any variable value.
From the client side you can use the normal read service.
On the server side you can also use NodeManager::getNode() to get a node pointer for a NodeId. From this node you can get or set the value attribute directly. But do not forget to release the reference if you get a node pointer back.
Best Regards,
Unified Automation Support Team