19 #include <cvb/opcua/client.hpp> 21 int main(
int,
char*[])
29 auto root = client->RootNode();
36 std::cout <<
"------------------------------------" << std::endl;
37 for (
auto & res : result)
42 std::cout <<
"------------------------------------" << std::endl;
53 std::cout <<
"------------------------------------" << std::endl;
54 for (
auto & res : result2)
59 std::cout <<
"------------------------------------" << std::endl;
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 func...
Definition: detail_client.hpp:24
String DisplayName() const
Returns the humanreadable name of a node.
Definition: decl_base_node.hpp:91
int ErrorCode()
Retuns the error code. See Cvb::ErrorCodes.
Definition: exception.hpp:50
static NodeIDPtr Create(Namespace0NodeID id)
Creates an id based on a predefined Namespace0 node id.
Definition: node_id.hpp:48
Special runtime exception to carry a native error code.
Definition: exception.hpp:24
static BrowseFilterPtr Create()
Creates an even simpler BrowseFilter for browsing the OPCUA client.
Definition: browse_filter.hpp:76
An OPCUA BaseNode. This is the base for all other node classes. For instantiation of a specific node ...
Definition: decl_base_node.hpp:34