You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by hu...@apache.org on 2024/04/09 02:21:05 UTC

(plc4x) 01/02: fix(plc4py): Fix connection lost exception being raised

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

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

commit 3b5b75566dbcaa57e98b480f9340fb8489aedbbd
Author: Ben Hutcheson <be...@gmail.com>
AuthorDate: Tue Apr 9 04:15:05 2024 +0200

    fix(plc4py): Fix connection lost exception being raised
---
 src/site/asciidoc/users/getting-started/plc4py.adoc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/site/asciidoc/users/getting-started/plc4py.adoc b/src/site/asciidoc/users/getting-started/plc4py.adoc
index 23c3a601cc..7377d55aa4 100644
--- a/src/site/asciidoc/users/getting-started/plc4py.adoc
+++ b/src/site/asciidoc/users/getting-started/plc4py.adoc
@@ -44,9 +44,9 @@ async def communicate_with_plc():
             builder.add_item("Random Tag", "4x00001[10]")
             request = builder.build()
 
-    future = connection.execute(request)
-    await future
-    response = future.result()
+        future = connection.execute(request)
+        await future
+        response = future.result()
 
 asyncio.run(communicate_with_plc())
 ----