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

commit 9c5a3726d094c31dde4b79fa76255e2ee416e566
Author: jenkins <[email protected]>
AuthorDate: Wed Apr 21 16:04:31 2021 +0000

    Site checkin for project PLC4X: Jenkins Tools
---
 plc4go/index.html | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/plc4go/index.html b/plc4go/index.html
index 6657bd7..8ca6bd8 100644
--- a/plc4go/index.html
+++ b/plc4go/index.html
@@ -204,10 +204,10 @@ The format of an address greatly depends on the type of 
connection. Therefore <c
        defer connection.Close()
 
        // Prepare a read-request
-       rrb := connection.ReadRequestBuilder()
-       rrb.AddItem("field1", "holding-register:1:REAL")
-       rrb.AddItem("field2", "holding-register:3:REAL")
-       readRequest, err := rrb.Build()
+       readRequest, err := connection.ReadRequestBuilder().
+        AddItem("field1", "holding-register:1:REAL").
+           AddItem("field2", "holding-register:3:REAL").
+           Build()
        if err != nil {
                t.Errorf("error preparing read-request: %s", 
connectionResult.Err.Error())
                return

Reply via email to