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

commit 25d7ee22ef428cbf2026b37d01df110615cffb45
Author: jenkins <[email protected]>
AuthorDate: Mon Mar 4 20:37:37 2024 +0000

    Site checkin for project PLC4X: Jenkins Tools
---
 users/getting-started/plc4py.html | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/users/getting-started/plc4py.html 
b/users/getting-started/plc4py.html
index 8a44445c6..a7a9ee8e0 100644
--- a/users/getting-started/plc4py.html
+++ b/users/getting-started/plc4py.html
@@ -341,11 +341,12 @@ Once we have decided that PLC4Py is in a position to 
release we will publish to
 </div>
 <div class="listingblock">
 <div class="content">
-<pre>from plc4py.PlcDriverManager import PlcDriverManager
-
-connection_string = "modbus://192.168.1.174:502";
+<pre>import asyncio
+from plc4py.PlcDriverManager import PlcDriverManager
 
+connection_string = "modbus://192.168.1.174:502"
 driver_manager = PlcDriverManager()
+
 async def communicate_with_plc():
     async with driver_manager.connection(connection_string) as connection:
         with connection.read_request_builder() as builder:
@@ -354,7 +355,9 @@ async def communicate_with_plc():
 
     future = connection.execute(request)
     await future
-    response = future.result()</pre>
+    response = future.result()
+
+asyncio.run(communicate_with_plc())</pre>
 </div>
 </div>
 <div class="paragraph">

Reply via email to