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

sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new f172674  plc4site: update the plc4go example to use the builder pattern
f172674 is described below

commit f1726742c482e100b2bd45cf96f1ecde45940b77
Author: Sebastian Rühl <sru...@apache.org>
AuthorDate: Wed Apr 21 17:33:59 2021 +0200

    plc4site: update the plc4go example to use the builder pattern
---
 src/site/asciidoc/plc4go/index.adoc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/site/asciidoc/plc4go/index.adoc 
b/src/site/asciidoc/plc4go/index.adoc
index ca346de..42896e6 100644
--- a/src/site/asciidoc/plc4go/index.adoc
+++ b/src/site/asciidoc/plc4go/index.adoc
@@ -122,10 +122,10 @@ func HellpPlc4go() {
        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