Skip to content

Commit 70a715a

Browse files
committed
Replace master branch with page content via GitHub
1 parent 3278f88 commit 70a715a

File tree

3 files changed

+22
-14
lines changed

3 files changed

+22
-14
lines changed

index.html

+17-11
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,22 @@ <h2 id="project_tagline">FreeOPCUA: An Open Source C++ OPC-UA Server and Client
4040
</li>
4141
<li>Source code: <a href="https://github.com/FreeOpcUa">https://github.com/FreeOpcUa</a>
4242
</li>
43-
</ul><p>Example high level Python server code:</p>
43+
</ul>
44+
45+
<p>Example high level Python server code:</p>
46+
47+
<pre><code>server = opcua.Server()
48+
server.set_endpoint("opc.tcp://192.168.56.1:4841")
49+
server.start()
50+
try:
51+
52+
uri = "http://examples.freeopcua.github.io"
53+
idx = server.register_namespace(uri)
4454

45-
<pre><code>s = opcua.Server()
46-
s.set_endpoint("opc.tcp://192.168.56.1:4841")
47-
s.start()
48-
try;
49-
objects = s.get_objects_node()
55+
objects = server.get_objects_node()
5056

51-
m = objects.add_folder("2:MyFolder")
52-
v = m.add_variable("2:MyVariable", 3)
57+
myfolder = objects.add_folder(idx, "MyFolder")
58+
myvariable = myfolder.add_variable(idx, "MyVariable", 3)
5359

5460
count = 0
5561
while True;
@@ -58,7 +64,7 @@ <h2 id="project_tagline">FreeOPCUA: An Open Source C++ OPC-UA Server and Client
5864
time.sleep(1);
5965

6066
finally:
61-
s.stop()
67+
server.stop()
6268
</code></pre>
6369

6470
<p>Or write lower level code in C++</p>
@@ -81,12 +87,12 @@ <h2 id="project_tagline">FreeOPCUA: An Open Source C++ OPC-UA Server and Client
8187
</code></pre>
8288

8389
<h2>
84-
<a name="getting-started" class="anchor" href="#getting-started"><span class="octicon octicon-link"></span></a>Getting Started</h2>
90+
<a id="getting-started" class="anchor" href="#getting-started" aria-hidden="true"><span class="octicon octicon-link"></span></a>Getting Started</h2>
8591

8692
<p>Next you can try compiling the code using the standard ./configure; make; make install commands</p>
8793

8894
<h3>
89-
<a name="example-code" class="anchor" href="#example-code"><span class="octicon octicon-link"></span></a>Example code</h3>
95+
<a id="example-code" class="anchor" href="#example-code" aria-hidden="true"><span class="octicon octicon-link"></span></a>Example code</h3>
9096

9197
<p>C++ sample code can be found here:
9298
<a href="https://github.com/FreeOpcUa/freeopcua/tree/master/src/examples">https://github.com/FreeOpcUa/freeopcua/tree/master/src/examples</a></p>

params.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"Freeopcua.github.io","tagline":"FreeOPCUA: An Open Source C++ OPC-UA Server and Client Library","body":"Free OPC-UA is LGPL C++ library to 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\n* Mailing list: https://groups.google.com/forum/#!forum/freeopcua\r\n* Source code: https://github.com/FreeOpcUa\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 ...\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## Getting Started\r\n\r\nNext you can try compiling the code using the standard ./configure; make; make install commands\r\n\r\n### Example code\r\n\r\nC++ sample code can be found here:\r\nhttps://github.com/FreeOpcUa/freeopcua/tree/master/src/examples\r\n\r\nand then try to communicate with server using an opc-ua client (There are many free clients on the net)\r\n\r\nI you want to use lower level api then have a look at:\r\n* https://github.com/FreeOpcUa/freeopcua/blob/master/src/server/opcuaserver.cpp\r\n* https://github.com/FreeOpcUa/freeopcua/blob/master/src/core/node.cpp\r\n* https://github.com/FreeOpcUa/freeopcua/blob/master/src/client/client.cpp\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: An Open Source C++ OPC-UA Server and Client Library","body":"Free OPC-UA is LGPL C++ library to 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\n* Mailing list: https://groups.google.com/forum/#!forum/freeopcua\r\n* Source code: https://github.com/FreeOpcUa\r\n\r\nExample high level Python server code:\r\n\r\n server = opcua.Server()\r\n server.set_endpoint(\"opc.tcp://192.168.56.1:4841\")\r\n server.start()\r\n try:\r\n\r\n uri = \"http://examples.freeopcua.github.io\"\r\n idx = server.register_namespace(uri)\r\n\r\n objects = server.get_objects_node()\r\n\r\n myfolder = objects.add_folder(idx, \"MyFolder\")\r\n myvariable = myfolder.add_variable(idx, \"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 server.stop()\r\n\r\nOr write lower level code in C++\r\n\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## Getting Started\r\n\r\nNext you can try compiling the code using the standard ./configure; make; make install commands\r\n\r\n### Example code\r\n\r\nC++ sample code can be found here:\r\nhttps://github.com/FreeOpcUa/freeopcua/tree/master/src/examples\r\n\r\nand then try to communicate with server using an opc-ua client (There are many free clients on the net)\r\n\r\nI you want to use lower level api then have a look at:\r\n* https://github.com/FreeOpcUa/freeopcua/blob/master/src/server/opcuaserver.cpp\r\n* https://github.com/FreeOpcUa/freeopcua/blob/master/src/core/node.cpp\r\n* https://github.com/FreeOpcUa/freeopcua/blob/master/src/client/client.cpp\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."}

stylesheets/stylesheet.css

+4-2
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,14 @@ ul, ol, dl {
201201
}
202202

203203
ul {
204-
list-style: inside;
204+
list-style-position: inside;
205+
list-style: disc;
205206
padding-left: 20px;
206207
}
207208

208209
ol {
209-
list-style: decimal inside;
210+
list-style-position: inside;
211+
list-style: decimal;
210212
padding-left: 20px;
211213
}
212214

0 commit comments

Comments
 (0)