computer_session.cpp
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 #include "common.h"
00012 
00013 #include <opc/ua/client/remote_server.h>
00014 
00015 #include <stdexcept>
00016 
00017 TEST(Session, Works)
00018 {
00019   std::unique_ptr<OpcUa::Services> computer = OpcUa::Connect(GetEndpoint());
00020 
00021   OpcUa::RemoteSessionParameters session;
00022   session.ClientDescription.Name.Text = "opcua client";
00023   session.SessionName = "test";
00024   session.EndpointUrl = GetEndpoint();
00025   session.Timeout = 1000;
00026 
00027   computer->CreateSession(session);
00028   computer->ActivateSession();
00029   computer->CloseSession();
00030 }
00031 


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Sat Jun 8 2019 18:24:40