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 e1133d7  Site checkin for project PLC4X: Jenkins Tools
e1133d7 is described below

commit e1133d7a5d860b60a150beef4484cba5788b2fac
Author: jenkins <[email protected]>
AuthorDate: Mon Sep 6 17:28:22 2021 +0000

    Site checkin for project PLC4X: Jenkins Tools
---
 users/getting-started/plc4go.html | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/users/getting-started/plc4go.html 
b/users/getting-started/plc4go.html
index 124bb4a..cef452e 100644
--- a/users/getting-started/plc4go.html
+++ b/users/getting-started/plc4go.html
@@ -482,8 +482,8 @@ This is done by a <code>PlcReadRequest</code>.</p>
 <div class="content">
 <pre>  // 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())
@@ -536,7 +536,7 @@ This will probably change soon. The API is still a bit in 
flux.
        value1 := readRequestResult.Response.GetValue("field1")
        value2 := readRequestResult.Response.GetValue("field2")
        fmt.Printf("\n\nResult field1: %f\n", value1.GetFloat32())
-       fmt.Printf("\n\nResult field1: %f\n", value2.GetFloat32())</pre>
+       fmt.Printf("\n\nResult field2: %f\n", value2.GetFloat32())</pre>
 </div>
 </div>
 <div class="paragraph">

Reply via email to