UA Server SDK C++ Bundle  1.3.2.200
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Client Cpp Sample - Full Client Example

The client example "Client Cpp Sample" provides a full client example.

The sample code and the referenced functions in the following list can be found in the file client_cpp_sdk.cpp

It provides examples for:

  • Server discovery (method startDiscovery)
  • Certificate and security handling (methods setupSecurity, createCertificates, startDiscovery, connect)
  • Connect to server including namespace handling (method connect)
  • Disconnect from server (method disconnect)
  • Browse server address space (method browse)
  • Read values from server (method read)
  • Write values to server (method write)
  • Register nodes for optimized read / write (method registerNodes)
  • Unregister nodes (method unregisterNodes)
  • Create subscription, data monitored items and event monitored items including event filter handling (method subscribe)
  • Call method in server (method callMethod)
  • Translate a browse path to nodeId (method translate)

The callback handling for data changes and events is implemented in callback.h.

The client configuration is loaded from a file and stored in clas implemented in clientconfig.h.