opcua_protocol_addon_test.h
Go to the documentation of this file.
1 
11 #pragma once
12 
14 
18 
19 
20 /*
21  <parameters>
22  <!-- Enable/disable debuging of module. -->
23  <debug>1</debug>
24  <application>
25  <!-- Common parameters for all endpoints -->
26  <application_name>Test OPC UA Server</application_name>
27  <application_uri>opcua.treww.org</application_uri>
28  <application_type>server</application_type>
29  <security_mode>none</security_mode>
30  <security_policy_uri>http://opcfoundation.org/UA/SecurityPolicy#None</security_policy_uri>
31  <transport_profile_uri>http://opcfoundation.org/UA-Profile/Transport/uatcp-uasc-uabinary</transport_profile_uri>
32  <user_token_policy>
33  <id>anonymous</id>
34  <type>anonymous</type>
35  <uri>http://opcfoundation.org/UA/SecurityPolicy#None</uri>
36  </user_token_policy>
37 
38  <!-- endpoint specific parameters. It may overwrite common parameters. -->
39  <endpoint>
40  <url>opc.tcp://localhost:4841</url>
41  </endpoint>
42  <application>
43  </parameters>
44 */
45 
46 
47 namespace OpcUa
48 {
49 namespace Test
50 {
51 /*
52  void RegisterOpcTcpAddon(Common::AddonsManager& addons)
53  {
54  Common::AddonInformation opcTcp;
55  opcTcp.Factory.reset(new OpcUa::UaServer::OpcUaProtocolAddonFactory());
56  opcTcp.Id = OpcUa::UaServer::OpcUaProtocolAddonId;
57  opcTcp.Dependencies.push_back(OpcUa::UaServer::EndpointsRegistryAddonId);
58 
59  Common::ParametersGroup application("application");
60  application.Parameters.push_back(Common::Parameter("application_name","Test OPC UA Server"));
61  application.Parameters.push_back(Common::Parameter("application_uri","opcua.treww.org"));
62  application.Parameters.push_back(Common::Parameter("application_type","server"));
63 
64  Common::ParametersGroup userTokenPolicy("user_token_policy");
65  userTokenPolicy.Parameters.push_back(Common::Parameter("id", "anonymous"));
66  userTokenPolicy.Parameters.push_back(Common::Parameter("type", "anonymous"));
67  userTokenPolicy.Parameters.push_back(Common::Parameter("uri", "http://opcfoundation.org/UA/SecurityPolicy#None"));
68  application.Groups.push_back(userTokenPolicy);
69 
70  Common::ParametersGroup endpoint("endpoint");
71  endpoint.Parameters.push_back(Common::Parameter("url", "opc.tcp://localhost:4841"));
72  endpoint.Parameters.push_back(Common::Parameter("security_mode","none"));
73  endpoint.Parameters.push_back(Common::Parameter("transport_profile_uri","http://opcfoundation.org/UA-Profile/Transport/uatcp-uasc-uabinary"));
74  application.Groups.push_back(endpoint);
75 
76  opcTcp.Parameters.Groups.push_back(application);
77  //opcTcp.Parameters.Parameters.push_back(Common::Parameter("debug", "1"));
78 
79  addons.Register(opcTcp);
80  }
81 */
82 }
83 }
OPC UA Address space part. GNU LGPL.


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:12:07