This is an automated email from the ASF dual-hosted git repository.
git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/plc4x-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new e8760e2d8 Site checkin for project PLC4X: Jenkins Tools
e8760e2d8 is described below
commit e8760e2d89f58b6edcc26a72dc20689b91cba838
Author: jenkins <[email protected]>
AuthorDate: Tue Mar 5 10:38:14 2024 +0000
Site checkin for project PLC4X: Jenkins Tools
---
index.html | 16 +++++-----
plc4x-pmc.rdf | 30 +++++++++++++++++++
users/getting-started/general-concepts.html | 8 ++---
users/getting-started/index.html | 4 +--
users/getting-started/plc4j.html | 6 ++--
users/getting-started/virtual-modbus.html | 46 +++++++----------------------
users/index.html | 26 ++++++++--------
users/tools/testing.html | 19 +++++-------
8 files changed, 78 insertions(+), 77 deletions(-)
diff --git a/index.html b/index.html
index f9b4e0206..234163b9b 100644
--- a/index.html
+++ b/index.html
@@ -181,7 +181,7 @@
<div class="carousel-item active">
<div class="col-md-12 col-lg-4">
<div class="card h-100 p-5
justify-content-center"
-
onclick="location.href='https://calcite.apache.org';" style="cursor:pointer;">
+
onclick="window.open('https://calcite.apache.org','_blank');"
style="cursor:pointer;">
<div class="d-flex
align-items-center justify-content-center h-100">
<img
src="images/integrations/apache_calcite_logo.svg" alt="Card image cap">
</div>
@@ -194,7 +194,7 @@
<div class="carousel-item">
<div class="col-md-12 col-lg-4">
<div class="card h-100 p-5
justify-content-center"
-
onclick="location.href='https://camel.apache.org';" style="cursor:pointer;">
+
onclick="window.open('https://camel.apache.org','_blank');"
style="cursor:pointer;">
<div class="d-flex
align-items-center justify-content-center h-100">
<img
src="images/integrations/apache_camel_logo.png" alt="Card image cap">
</div>
@@ -207,7 +207,7 @@
<div class="carousel-item">
<div class="col-md-12 col-lg-4">
<div class="card h-100 p-5
justify-content-center"
-
onclick="location.href='https://iotdb.apache.org';" style="cursor:pointer;">
+
onclick="window.open('https://iotdb.apache.org','_blank');"
style="cursor:pointer;">
<div class="d-flex
align-items-center justify-content-center h-100">
<img
src="images/integrations/apache_iotdb_logo.png" alt="Card image cap">
</div>
@@ -220,7 +220,7 @@
<div class="carousel-item">
<div class="col-md-12 col-lg-4">
<div class="card h-100 p-5
justify-content-center"
-
onclick="location.href='https://kafka.apache.org';" style="cursor:pointer;">
+
onclick="window.open('https://kafka.apache.org','_blank');"
style="cursor:pointer;">
<div class="d-flex
align-items-center justify-content-center h-100">
<img
src="images/integrations/apache_kafka_logo.png" alt="Card image cap">
</div>
@@ -233,7 +233,7 @@
<div class="carousel-item">
<div class="col-md-12 col-lg-4">
<div class="card h-100 p-5
justify-content-center"
-
onclick="location.href='https://nifi.apache.org';" style="cursor:pointer;">
+
onclick="window.open('https://nifi.apache.org','_blank');"
style="cursor:pointer;">
<div class="d-flex
align-items-center justify-content-center h-100">
<img
src="images/integrations/apache_nifi_logo.svg" alt="Card image cap">
</div>
@@ -246,7 +246,7 @@
<div class="carousel-item">
<div class="col-md-12 col-lg-4">
<div class="card h-100 p-5
justify-content-center"
-
onclick="location.href='https://streampipes.apache.org';"
+
onclick="window.open('https://streampipes.apache.org','_blank');"
style="cursor:pointer;">
<div class="d-flex
align-items-center justify-content-center h-100">
<img
src="images/integrations/apache_streampipes_logo.png" alt="Card image cap">
@@ -260,7 +260,7 @@
<div class="carousel-item">
<div class="col-md-12 col-lg-4">
<div class="card h-100 p-5
justify-content-center"
-
onclick="location.href='https://hop.apache.org';"
+
onclick="window.open('https://hop.apache.org','_blank');"
style="cursor:pointer;">
<div class="d-flex
align-items-center justify-content-center h-100">
<img
src="images/integrations/apache_hop_logo.png" alt="Card image cap">
@@ -274,7 +274,7 @@
<div class="carousel-item">
<div class="col-md-12 col-lg-4">
<div class="card h-100 p-5
justify-content-center"
-
onclick="location.href='https://www.eclipse.org/ditto/';"
+
onclick="window.open('https://www.eclipse.org/ditto/','_blank');"
style="cursor:pointer;">
<div class="d-flex
align-items-center justify-content-center h-100">
<img
src="images/integrations/eclipse_ditto_logo.png" alt="Card image cap">
diff --git a/plc4x-pmc.rdf b/plc4x-pmc.rdf
index 30b8ae119..aede70b5d 100644
--- a/plc4x-pmc.rdf
+++ b/plc4x-pmc.rdf
@@ -40,6 +40,11 @@
</foaf:Person>
</asfext:chair>
+ <asfext:member>
+ <foaf:Person>
+ <foaf:name>Ben Hutcheson</foaf:name>
+ </foaf:Person>
+ </asfext:member>
<asfext:member>
<foaf:Person>
<foaf:name>Björn Höper</foaf:name>
@@ -50,6 +55,11 @@
<foaf:name>Christofer Dutz</foaf:name>
</foaf:Person>
</asfext:member>
+ <asfext:member>
+ <foaf:Person>
+ <foaf:name>César García</foaf:name>
+ </foaf:Person>
+ </asfext:member>
<asfext:member>
<foaf:Person>
<foaf:name>Julian Feinauer</foaf:name>
@@ -60,11 +70,26 @@
<foaf:name>Justin Mclean</foaf:name>
</foaf:Person>
</asfext:member>
+ <asfext:member>
+ <foaf:Person>
+ <foaf:name>Lukas Ott</foaf:name>
+ </foaf:Person>
+ </asfext:member>
<asfext:member>
<foaf:Person>
<foaf:name>Markus Sommer</foaf:name>
</foaf:Person>
</asfext:member>
+ <asfext:member>
+ <foaf:Person>
+ <foaf:name>Matthias Milan Strljic</foaf:name>
+ </foaf:Person>
+ </asfext:member>
+ <asfext:member>
+ <foaf:Person>
+ <foaf:name>Otto Fowler</foaf:name>
+ </foaf:Person>
+ </asfext:member>
<asfext:member>
<foaf:Person>
<foaf:name>Sebastian Rühl</foaf:name>
@@ -75,5 +100,10 @@
<foaf:name>Tim Mitsch</foaf:name>
</foaf:Person>
</asfext:member>
+ <asfext:member>
+ <foaf:Person>
+ <foaf:name>Łukasz Dywicki</foaf:name>
+ </foaf:Person>
+ </asfext:member>
</asfext:pmc>
</rdf:RDF>
\ No newline at end of file
diff --git a/users/getting-started/general-concepts.html
b/users/getting-started/general-concepts.html
index dcc311c14..f9b0c0ad6 100644
--- a/users/getting-started/general-concepts.html
+++ b/users/getting-started/general-concepts.html
@@ -426,13 +426,13 @@ This allows them to not only be used in what we call
<code>passive-mode drivers<
<p>For example with a <code>TCP</code> and <code>UDP</code> transport, this
will be the <code>IP address</code> or <code>hostname</code> optionally
followed by the <code>Port</code>.</p>
</div>
<div class="paragraph">
-<p>For a <code>Serial</code> transport this will be the <code>name of the
serial interface</code>. <code>Raw Sockets</code> will require the <code>device
name</code> or a `MAC address`and so on.</p>
+<p>For a <code>Serial</code> transport this will be the <code>name of the
serial interface</code>. <code>Raw Sockets</code> will require the <code>device
name</code> or a <code>MAC address</code> and so on.</p>
</div>
<div class="paragraph">
<p>For a full description of all transports and their options, please consult
the <code>Transport Documentation</code> <a
href="../transports/index.html">here</a>.</p>
</div>
<div class="paragraph">
-<p>The last segment - <code>options</code> - can be used to fine tune some
protocol or transport options to non-default values. For details on these
options, please have a look at the <code>Protocol Documentation</code> <a
href="../protocols/index.html">here</a> and the <code>Transport
Documentation</code> <a href="../transports/index.html">here</a>.</p>
+<p>The last segment - <code>options</code> - can be used to fine tune some
protocol or transport options to non-default values. Usually these vary quite a
bit from protocol to protocol. For details on these options, please have a look
at the <code>Protocol Documentation</code> <a
href="../protocols/index.html">here</a>. Even if most transports also have
common options, their defaults vary quite a bit, depending on the protocol
being used. So, instead of having a look at the general <code [...]
</div>
<div class="paragraph">
<p>The general structure of this part is always the same:</p>
@@ -443,7 +443,7 @@ This allows them to not only be used in what we call
<code>passive-mode drivers<
</div>
</div>
<div class="paragraph">
-<p>So in general the options are stared with a <code>?</code> and then
followed by <code>name-value</code> pairs, which are separated by ampersand
characters <code>&</code>.</p>
+<p>So the options start with a <code>?</code> and are then followed by
<code>name-value</code> pairs, which are separated by ampersand characters
<code>&</code>.</p>
</div>
<div class="paragraph">
<p>A driver for a given protocol however usually has a <code>default
transport</code>, so sometimes it is possible to omit the transport code. Also
do most drivers define default values for the various configuration options, so
in general you should only require to use configuration options, if you are
using non-default settings.</p>
@@ -457,7 +457,7 @@ This allows them to not only be used in what we call
<code>passive-mode drivers<
</div>
</div>
<div class="paragraph">
-<p>For more information on the default settings for a given protocol or
transport, please check the corresponding documentation.</p>
+<p>For more information on the default settings for a given protocol or
transport, please check the corresponding drivers documentation.</p>
</div>
</div>
</div>
diff --git a/users/getting-started/index.html b/users/getting-started/index.html
index 36cbd087a..bcad4c092 100644
--- a/users/getting-started/index.html
+++ b/users/getting-started/index.html
@@ -328,13 +328,13 @@
<div class="sect2">
<h3 id="gogolang">Go/Golang</h3>
<div class="paragraph">
-<p>For guides on how to write PLC4X applications with Go, please go to the <a
href="getting-started/plc4go.html">Go Getting Started</a></p>
+<p>For guides on how to write PLC4X applications with Go, please go to the <a
href="plc4go.html">Go Getting Started</a></p>
</div>
</div>
<div class="sect2">
<h3 id="java">Java</h3>
<div class="paragraph">
-<p>For guides on how to write PLC4X applications with Java, please go to the
<a href="getting-started/plc4j.html">Java Getting Started</a></p>
+<p>For guides on how to write PLC4X applications with Java, please go to the
<a href="plc4j.html">Java Getting Started</a></p>
</div>
</div>
</div>
diff --git a/users/getting-started/plc4j.html b/users/getting-started/plc4j.html
index e0f9bfc45..dc7c66f94 100644
--- a/users/getting-started/plc4j.html
+++ b/users/getting-started/plc4j.html
@@ -587,9 +587,9 @@ if (!plcConnection.getMetadata().isWriteSupported()) {
// - Give the single item requested an alias name
// - Pass in the data you want to write (for arrays, pass in one value for
every element)
PlcWriteRequest.Builder builder = plcConnection.writeRequestBuilder();
-builder.addTagAddress("value-1", "%Q0.4:BOOL", true);
-builder.addTagAddress("value-2", "%Q0:BYTE", (byte) 0xFF);
-builder.addTagAddress("value-4", "%DB.DB1.4:INT[3]", 7, 23, 42);
+builder.addTagAddress("value-1", "%Q0.4:BOOL", new PlcBOOL(true));
+builder.addTagAddress("value-2", "%Q0:BYTE", new PlcBYTE((byte) 0xFF));
+builder.addTagAddress("value-4", "%DB.DB1.4:INT[3]", new PlcINT(7), new
PlcINT(23), new PlcINT(42));
PlcWriteRequest writeRequest = builder.build();</pre>
</div>
</div>
diff --git a/users/getting-started/virtual-modbus.html
b/users/getting-started/virtual-modbus.html
index f2ebf225a..0daa635dc 100644
--- a/users/getting-started/virtual-modbus.html
+++ b/users/getting-started/virtual-modbus.html
@@ -591,7 +591,7 @@ When using Maven, all you need to do is add this
dependency:</p>
<pre> <dependency>
<groupId>org.apache.plc4x</groupId>
<artifactId>plc4j-api</artifactId>
- <version>{project-version}</version>
+ <version>0.12.0</version>
</dependency></pre>
</div>
</div>
@@ -607,7 +607,7 @@ However, in order to actually connect to a device using a
given protocol, you ne
<pre> <dependency>
<groupId>org.apache.plc4x</groupId>
<artifactId>plc4j-driver-modbus</artifactId>
- <version>{project-version}</version>
+ <version>0.12.0</version>
<scope>runtime</scope>
</dependency></pre>
</div>
@@ -695,10 +695,10 @@ This is done by getting a
<code>PlcRequestBuilder</code>:</p>
<pre>// Create a new read request:
// - Give the single item requested the alias name "value"
PlcReadRequest.Builder builder = plcConnection.readRequestBuilder();
-builder.addItem("value-1", "coil:1");
-builder.addItem("value-2", "coil:3[4]");
-builder.addItem("value-3", "holding-register:1");
-builder.addItem("value-4", "holding-register:3[4]");
+builder.addTagAddress("value-1", "coil:1");
+builder.addTagAddress("value-2", "coil:3[4]");
+builder.addTagAddress("value-3", "holding-register:1");
+builder.addTagAddress("value-4", "holding-register:3[4]");
PlcReadRequest readRequest = builder.build();</pre>
</div>
</div>
@@ -738,32 +738,6 @@ So as soon as the request is fully processed, the callback
gets called and will
The following example will demonstrate some of the options you have:</p>
</div>
<div class="listingblock">
-<div class="title">Up to version 0.10.0</div>
-<div class="content">
-<pre>for (String fieldName : response.getFieldNames()) {
- if(response.getResponseCode(fieldName) == PlcResponseCode.OK) {
- int numValues = response.getNumberOfValues(fieldName);
- // If it's just one element, output just one single line.
- if(numValues == 1) {
- logger.info("Value[" + fieldName + "]: " +
response.getObject(fieldName));
- }
- // If it's more than one element, output each in a single row.
- else {
- logger.info("Value[" + fieldName + "]:");
- for(int i = 0; i < numValues; i++) {
- logger.info(" - " + response.getObject(fieldName, i));
- }
- }
- }
- // Something went wrong, to output an error message instead.
- else {
- logger.error("Error[" + fieldName + "]: " +
response.getResponseCode(fieldName).name());
- }
-}</pre>
-</div>
-</div>
-<div class="listingblock">
-<div class="title">SNAPSHOT version</div>
<div class="content">
<pre>for (String tagName : response.getTagNames()) {
if(response.getResponseCode(tagName) == PlcResponseCode.OK) {
@@ -874,10 +848,10 @@ This is done by getting a
<code>PlcRequestBuilder</code>:</p>
<pre>// Create a new read request:
// - Give the single item requested the alias name "value"
PlcWriteRequest.Builder builder = plcConnection.writeRequestBuilder();
-builder.addItem("value-1", "coil:1", true);
-builder.addItem("value-2", "coil:3[4]", true, false, true, true);
-builder.addItem("value-3", "holding-register:1", 42);
-builder.addItem("value-4", "holding-register:3[4]", 1, 2, 3, 4);
+builder.addTagAddress("value-1", "coil:1", new PlcBOOL(true);
+builder.addTagAddress("value-2", "coil:3[4]", new PlcBOOL(true), new
PlcBOOL(false), new PlcBOOL(true), new PlcBOOL(true));
+builder.addTagAddress("value-3", "holding-register:1", new PlcINT(42);
+builder.addTagAddress("value-4", "holding-register:3[4]", new PlcINT(1), new
PlcINT(2), new PlcINT(3), new PlcINT(4));
PlcWriteRequest writeRequest = builder.build();</pre>
</div>
</div>
diff --git a/users/index.html b/users/index.html
index f53acd8e1..1532eff0b 100644
--- a/users/index.html
+++ b/users/index.html
@@ -531,14 +531,14 @@
<div class="paragraph">
<p>Another speciality, which is why it’s called PLC4 <strong>X</strong>
and not PLC4 <strong>J</strong>, is that we generally try to make our drivers
available in various programming languages. In contrast to other projects, we
don’t do this by wrapping C-type libraries with stubs for various
languages, we generate most of our code and are hereby able to build
implementation native to the language being used, which lets us take full
advantage of the corresponding programming [...]
</div>
-<div id="protocolCarousel" class="carousel slide" data-ride="carousel">
+<div id="languageCarousel" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<div class="col-md-12 col-lg-4">
<div class="card h-100 p-5 justify-content-center"
onclick="location.href='getting-started/plc4c.adoc';"
style="cursor:pointer;">
<div class="d-flex align-items-center justify-content-center h-100">
- <img src="images/languages/c_logo.png" alt="Card image cap">
+ <img src="../images/languages/c_logo.png" alt="Card image cap">
</div>
<div class="card-body">
<h5 class="card-title"><b>C</b></h5>
@@ -546,12 +546,12 @@
</div>
</div>
</div>
- <div class="carousel-item active">
+ <div class="carousel-item">
<div class="col-md-12 col-lg-4">
<div class="card h-100 p-5 justify-content-center"
onclick="location.href='getting-started/plc4cs.adoc';"
style="cursor:pointer;">
<div class="d-flex align-items-center justify-content-center h-100">
- <img src="images/languages/cs_logo.png" alt="Card image cap">
+ <img src="../images/languages/cs_logo.png" alt="Card image cap">
</div>
<div class="card-body">
<h5 class="card-title"><b>C#</b></h5>
@@ -559,12 +559,12 @@
</div>
</div>
</div>
- <div class="carousel-item active">
+ <div class="carousel-item">
<div class="col-md-12 col-lg-4">
<div class="card h-100 p-5 justify-content-center"
onclick="location.href='getting-started/plc4go.adoc';"
style="cursor:pointer;">
<div class="d-flex align-items-center justify-content-center h-100">
- <img src="images/languages/go_logo.png" alt="Card image cap">
+ <img src="../images/languages/go_logo.png" alt="Card image cap">
</div>
<div class="card-body">
<h5 class="card-title"><b>Go</b></h5>
@@ -572,12 +572,12 @@
</div>
</div>
</div>
- <div class="carousel-item active">
+ <div class="carousel-item">
<div class="col-md-12 col-lg-4">
<div class="card h-100 p-5 justify-content-center"
onclick="location.href='getting-started/plc4j.adoc';"
style="cursor:pointer;">
<div class="d-flex align-items-center justify-content-center h-100">
- <img src="images/languages/java_logo.png" alt="Card image cap">
+ <img src="../images/languages/java_logo.png" alt="Card image cap">
</div>
<div class="card-body">
<h5 class="card-title"><b>Java</b></h5>
@@ -585,12 +585,12 @@
</div>
</div>
</div>
- <div class="carousel-item active">
+ <div class="carousel-item">
<div class="col-md-12 col-lg-4">
<div class="card h-100 p-5 justify-content-center"
onclick="location.href='getting-started/plc4py.adoc';"
style="cursor:pointer;">
<div class="d-flex align-items-center justify-content-center h-100">
- <img src="images/languages/python_logo.png" alt="Card image cap">
+ <img src="../images/languages/python_logo.png" alt="Card image
cap">
</div>
<div class="card-body">
<h5 class="card-title"><b>Python</b></h5>
@@ -599,11 +599,11 @@
</div>
</div>
</div>
- <a class="carousel-control-prev" href="#protocolCarousel" role="button"
data-slide="prev">
+ <a class="carousel-control-prev" href="#languageCarousel" role="button"
data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
- <a class="carousel-control-next" href="#protocolCarousel" role="button"
data-slide="next">
+ <a class="carousel-control-next" href="#languageCarousel" role="button"
data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
@@ -714,7 +714,7 @@
onclick="location.href='https://hop.apache.org';"
style="cursor:pointer;">
<div class="d-flex align-items-center
justify-content-center h-100">
- <img
src="images/integrations/apache_hop_logo.png" alt="Card image cap">
+ <img
src="../images/integrations/apache_hop_logo.png" alt="Card image cap">
</div>
<div class="card-body">
<h5 class="card-title"><b>Apache
Hop™</b></h5>
diff --git a/users/tools/testing.html b/users/tools/testing.html
index 385a2e351..0df81fdc2 100644
--- a/users/tools/testing.html
+++ b/users/tools/testing.html
@@ -333,7 +333,7 @@ The driver can be found in the Maven module</p>
<div class="content">
<pre> <dependency>
<groupId>org.apache.plc4x</groupId>
- <artifactId>plc4j-transport-test</artifactId>
+ <artifactId>plc4j-driver-mock</artifactId>
<version>0.12.0</version>
<scope>test</scope>
</dependency></pre>
@@ -343,7 +343,7 @@ The driver can be found in the Maven module</p>
<p>The connection string Syntax for the mock driver is
<code>mock:{name-of-the-connection}</code>. So you can use multiple Mock
Devices at the same time.</p>
</div>
<div class="paragraph">
-<p>The Mock Driver does nothing else than forwarding all Requests to a
<em>Virtual Device</em> which we can provide to control all responses and also
Monitor them, e.g. for unit tests.
+<p>The Mock Driver does nothing else than forwarding all Requests to a
`Virtual Device which we can provide to control all responses and also Monitor
them, e.g. for unit tests.
The Interface for the Mock Device is</p>
</div>
<div class="listingblock">
@@ -375,8 +375,7 @@ This can be done with the Mock Driver in the following
way.</p>
</div>
<div class="listingblock">
<div class="content">
-<pre class="prettyprint highlight"><code>PlcDriverManager driverManager = new
PlcDriverManager();
-PlcMockConnection connection = (PlcMockConnection)
driverManager.getConnection("mock:my-mock-connection");</code></pre>
+<pre class="prettyprint highlight"><code>PlcMockConnection connection =
(PlcMockConnection)
PlcDriverManager.getDefault().getConnectionManager().getConnection("mock:my-mock-connection");</code></pre>
</div>
</div>
<div class="paragraph">
@@ -426,8 +425,7 @@ Like in the following Example</p>
<div class="content">
<pre class="prettyprint highlight"><code>MockDevice mockDevice =
Mockito.mock(MockDevice.class);
-PlcDriverManager driverManager = new PlcDriverManager();
-PlcMockConnection connection = (PlcMockConnection)
driverManager.getConnection("mock:my-mock-connection");
+PlcMockConnection connection = (PlcMockConnection)
PlcDriverManager.getDefault().getConnectionManager().getConnection("mock:my-mock-connection");
connection.setDevice(mockDevice);
// Populate the Mock to avoid a NPE
@@ -448,15 +446,14 @@ verify(mockDevice).read(eq("MyAdress"));</code></pre>
</div>
</div>
<div class="paragraph">
-<p>But as the <em>MockDriver</em> uses a static Mock Connection registry the
following Code works also</p>
+<p>But as the <code>MockDriver</code> uses a static Mock Connection registry
the following Code works also</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="prettyprint highlight"><code>MockDevice mockDevice =
Mockito.mock(MockDevice.class);
// Setup
-PlcDriverManager driverManager = new PlcDriverManager();
-PlcMockConnection connection = (PlcMockConnection)
driverManager.getConnection("mock:my-mock-connection");
+PlcMockConnection connection = (PlcMockConnection)
PlcDriverManager.getDefault().getConnectionManager().getConnection("mock:my-mock-connection");
connection.setDevice(mockDevice);
// Populate the Mock to avoid a NPE
when(mockDevice).read(anyString()).thenReturn(Pair.of(PlcResponseCode.OK, new
PlcString("hello")));
@@ -465,7 +462,7 @@
when(mockDevice).read(anyString()).thenReturn(Pair.of(PlcResponseCode.OK, new Pl
// or at least mock:my-mock-connection as connection string
// Here: send a request to the field "MyAdress"
// and we build up a new Connection
-try (PlcConnection conn =
driverManager.getConnection("mock:my-mock-connection")) {
+try (PlcConnection conn =
PlcDriverManager.getDefault().getConnectionManager().getConnection("mock:my-mock-connection"))
{
conn
.readRequestBuilder
.addItem("station", "MyAdress")
@@ -490,7 +487,7 @@ verify(mockDevice).read(eq("MyAdress"));</code></pre>
<p>The above examples show that the <code>MockDriver</code> driver can not
only be used to play around with the API but is also a powerful tool to
do unit testing of Code which uses the PLC4X API.
All that needs to be done is to either pass an instance of the Mocked
Connection or just use the same Connection string (e.g. from a test
configuration) that was used to Prepare a Mock Device.
-Some Examples of futher (more Complex) use cases can be found in the PLC4X
Codebases, e.g. in the following classes</p>
+Some Examples of further (more Complex) use cases can be found in the PLC4X
Codebases, e.g. in the following classes</p>
</div>
<div class="ulist">
<ul>