From 586a7339f98b47505fadf36a3d734d3af4a1e5d0 Mon Sep 17 00:00:00 2001 From: JorisW Date: Fri, 25 Oct 2024 18:27:39 +0200 Subject: [PATCH] Fixed handle local echo in serialserver (#2415) --- pymodbus/server/async_io.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pymodbus/server/async_io.py b/pymodbus/server/async_io.py index d06154603..e8c507fae 100644 --- a/pymodbus/server/async_io.py +++ b/pymodbus/server/async_io.py @@ -43,6 +43,7 @@ def __init__(self, owner): timeout_connect=0.0, host=owner.comm_params.source_address[0], port=owner.comm_params.source_address[1], + handle_local_echo=owner.comm_params.handle_local_echo, ) super().__init__(params, True) self.server = owner @@ -542,6 +543,7 @@ def __init__( parity=kwargs.get("parity", "N"), baudrate=kwargs.get("baudrate", 19200), stopbits=kwargs.get("stopbits", 1), + handle_local_echo=kwargs.get("handle_local_echo", False) ), context=context, ignore_missing_slaves=kwargs.get("ignore_missing_slaves", False),