An OPCUA Client object. This class handles the client side of the OPCUA client/server interaction.
More...
#include <cvb/opcua/client.hpp>
Inherits enable_shared_from_this< OpcUa::Client >.
|
static OpcUa::ClientPtr | Create (const Cvb::String &Url) |
| Creates an OPCUA Client object. And connect it to a given server. There is no disconnect/connect function. The client is connect at creation and disconnected on deconstruction. More...
|
|
An OPCUA Client object. This class handles the client side of the OPCUA client/server interaction.
- Note
- For details refer to the OPCUA specification Part 1:
https://opcfoundation.org/developer-tools/specifications-unified-architecture/part-1-overview-and-concepts/
◆ Create()
◆ Handle()
Returns C-API style handle to the client.
- Returns
- C-API handle
◆ Node() [1/2]
Returns a node (typed). Valid types are BaseNode and all derivatives.
- Exceptions
-
◆ Node() [2/2]
Returns a node (without type).
- Note
- Please use this method only if you don't know the type of the node. Otherwise use Client::Node<Type>(...).
- Parameters
-
[in] | id | OPCUA NodeID identifing the requested node. |
- Exceptions
-
◆ RootNode()
Returns the 'root' node of the server. This is a helper for traversing the entire server structure.
- Exceptions
-
◆ Subscribe()
Creates an OPCUA Subscribtion for an OPCUA Client. You can add node as monitored items (and receive updates if variable data changes).
- Returns
- SubscriptionPtr to the subscription.
- Exceptions
-