Skip to content

Commit 6898567

Browse files
committed
Replace master branch with page content via GitHub
1 parent 0960fae commit 6898567

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

index.html

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta charset='utf-8' />
66
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
7-
<meta name="description" content="Freeopcua.github.io : Free OPC_UA: A C++ OPC-UA Server and Client Library" />
7+
<meta name="description" content="Freeopcua.github.io : FreeOPCUA: A C++ OPC-UA Server and Client Library" />
88

99
<link rel="stylesheet" type="text/css" media="screen" href="stylesheets/stylesheet.css">
1010

@@ -19,7 +19,7 @@
1919
<a id="forkme_banner" href="https://github.com/FreeOpcUa">View on GitHub</a>
2020

2121
<h1 id="project_title">Freeopcua.github.io</h1>
22-
<h2 id="project_tagline">Free OPC_UA: A C++ OPC-UA Server and Client Library</h2>
22+
<h2 id="project_tagline">FreeOPCUA: A C++ OPC-UA Server and Client Library</h2>
2323

2424
</header>
2525
</div>
@@ -38,7 +38,6 @@ <h2 id="project_tagline">Free OPC_UA: A C++ OPC-UA Server and Client Library</h2
3838
<p>Example high level Python server code:</p>
3939

4040
<pre><code>s = opcua.Server()
41-
s.load_cpp_addressspace(True)
4241
s.set_endpoint("opc.tcp://192.168.56.1:4841")
4342
s.start()
4443
try;
@@ -55,6 +54,24 @@ <h2 id="project_tagline">Free OPC_UA: A C++ OPC-UA Server and Client Library</h2
5554

5655
finally:
5756
s.stop()
57+
</code></pre>
58+
59+
<p>Or write lower level code in C++
60+
...
61+
Server = OpcUa::Remote::Connect(Endpoint);</p>
62+
63+
<pre><code>OpcUa::Remote::SessionParameters session;
64+
session.ClientDescription.URI = Uri;
65+
session.ClientDescription.ProductURI = Uri;
66+
session.ClientDescription.Name.Text = SessionName;
67+
session.ClientDescription.Type = OpcUa::ApplicationType::CLIENT;
68+
session.SessionName = SessionName;
69+
session.EndpointURL = Endpoint;
70+
session.Timeout = 1200000;
71+
72+
Server-&gt;CreateSession(session);
73+
Server-&gt;ActivateSession();
74+
...
5875
</code></pre>
5976
</section>
6077
</div>

params.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"Freeopcua.github.io","tagline":"Free OPC_UA: A C++ OPC-UA Server and Client Library","body":"Free OPC-UA is C++ library develop server and client OPC-UA applications. Python bindings can be found in the opcua-python repository. \r\n\r\nThe library is under development but works will all tested clients. It support addressspace browse, read, write and address space modification as well as subscriptions and datachange events.\r\n\r\nHistory is not yet supported\r\n\r\nAll expected OPC-UA objects are implemented in C++. Higher level Server, Client and Node objects are also available.\r\n\r\nExample high level Python server code:\r\n\r\n s = opcua.Server()\r\n s.load_cpp_addressspace(True)\r\n s.set_endpoint(\"opc.tcp://192.168.56.1:4841\")\r\n s.start()\r\n try;\r\n objects = s.get_objects_node()\r\n\r\n m = objects.add_folder(\"2:MyFolder\")\r\n v = m.add_variable(\"2:MyVariable\", 3)\r\n\r\n count = 0\r\n while True;\r\n count += 1\r\n v.set_value(count)\r\n time.sleep(1);\r\n\r\n finally:\r\n s.stop()\r\n\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."}
1+
{"name":"Freeopcua.github.io","tagline":"FreeOPCUA: A C++ OPC-UA Server and Client Library","body":"Free OPC-UA is C++ library develop server and client OPC-UA applications. Python bindings can be found in the opcua-python repository. \r\n\r\nThe library is under development but works will all tested clients. It support addressspace browse, read, write and address space modification as well as subscriptions and datachange events.\r\n\r\nHistory is not yet supported\r\n\r\nAll expected OPC-UA objects are implemented in C++. Higher level Server, Client and Node objects are also available.\r\n\r\nExample high level Python server code:\r\n\r\n s = opcua.Server()\r\n s.set_endpoint(\"opc.tcp://192.168.56.1:4841\")\r\n s.start()\r\n try;\r\n objects = s.get_objects_node()\r\n\r\n m = objects.add_folder(\"2:MyFolder\")\r\n v = m.add_variable(\"2:MyVariable\", 3)\r\n\r\n count = 0\r\n while True;\r\n count += 1\r\n v.set_value(count)\r\n time.sleep(1);\r\n\r\n finally:\r\n s.stop()\r\n\r\nOr write lower level code in C++\r\n ...\r\n Server = OpcUa::Remote::Connect(Endpoint);\r\n\r\n OpcUa::Remote::SessionParameters session;\r\n session.ClientDescription.URI = Uri;\r\n session.ClientDescription.ProductURI = Uri;\r\n session.ClientDescription.Name.Text = SessionName;\r\n session.ClientDescription.Type = OpcUa::ApplicationType::CLIENT;\r\n session.SessionName = SessionName;\r\n session.EndpointURL = Endpoint;\r\n session.Timeout = 1200000;\r\n\r\n Server->CreateSession(session);\r\n Server->ActivateSession();\r\n ...\r\n\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."}

0 commit comments

Comments
 (0)