You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by ni...@apache.org on 2021/09/06 16:26:36 UTC

[plc4x] branch NiklasMerz-plc4go-docs created (now abe3a2f)

This is an automated email from the ASF dual-hosted git repository.

niklasmerz pushed a change to branch NiklasMerz-plc4go-docs
in repository https://gitbox.apache.org/repos/asf/plc4x.git.


      at abe3a2f  Change PLC4GO docs read syntax

This branch includes the following new commits:

     new abe3a2f  Change PLC4GO docs read syntax

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[plc4x] 01/01: Change PLC4GO docs read syntax

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

niklasmerz pushed a commit to branch NiklasMerz-plc4go-docs
in repository https://gitbox.apache.org/repos/asf/plc4x.git

commit abe3a2f52a08388fdc810866c797368bfca8c894
Author: Niklas Merz <ni...@apache.org>
AuthorDate: Mon Sep 6 18:26:33 2021 +0200

    Change PLC4GO docs read syntax
---
 src/site/asciidoc/users/getting-started/plc4go.adoc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/site/asciidoc/users/getting-started/plc4go.adoc b/src/site/asciidoc/users/getting-started/plc4go.adoc
index e3bd188..2db03e4 100644
--- a/src/site/asciidoc/users/getting-started/plc4go.adoc
+++ b/src/site/asciidoc/users/getting-started/plc4go.adoc
@@ -163,8 +163,8 @@ In order to create and run such a `PlcReadRequest`, please add the following cod
 ----
 	// Prepare a read-request
 	readRequest, err := connection.ReadRequestBuilder().
-	    AddItem("field1", "holding-register:1:REAL").
-	    AddItem("field2", "holding-register:3:REAL").
+		AddQuery("field1", "holding-register:1:REAL").
+		AddQuery("field2", "holding-register:3:REAL").
         Build()
 	if err != nil {
 		t.Errorf("error preparing read-request: %s", connectionResult.Err.Error())