From e165f37806c248c98144d20b25b6bf8857542380 Mon Sep 17 00:00:00 2001 From: jan iversen Date: Sat, 1 Jul 2023 12:20:28 +0200 Subject: [PATCH] test ok. --- examples/client_calls.py | 2 +- examples/server_async.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/client_calls.py b/examples/client_calls.py index 23d253bfd..8e36c5faa 100755 --- a/examples/client_calls.py +++ b/examples/client_calls.py @@ -224,7 +224,7 @@ async def _execute_information_requests(client): async def _execute_diagnostic_requests(client): """Execute extended diagnostic requests.""" _logger.info("### Running diagnostic requests.") - message = b"long test" + message = b"OK" rr = _check_call( await client.execute( req_diag.ReturnQueryDataRequest(message=message, slave=SLAVE) diff --git a/examples/server_async.py b/examples/server_async.py index 0df9dadab..2b449c53c 100755 --- a/examples/server_async.py +++ b/examples/server_async.py @@ -221,5 +221,8 @@ async def run_async_server(args): if __name__ == "__main__": - run_args = setup_server(description="Run asynchronous server.") + run_args = setup_server( + description="Run asynchronous server.", + cmdline=["--log", "debug", "--framer", "rtu"], + ) asyncio.run(run_async_server(run_args), debug=True)