Server status/diagnostics

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

Moderator: uasdkcpp

Post Reply
gcperrin
Jr. Member
Jr. Member
Posts: 3
Joined: 04 Jul 2014, 01:01

Server status/diagnostics

Post by gcperrin »

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

User avatar
Support Team
Hero Member
Hero Member
Posts: 3071
Joined: 18 Mar 2011, 15:09

Re: Server status/diagnostics

Post by Support Team »

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

Post Reply