Skip to content

Commit

Permalink
test ok.
Browse files Browse the repository at this point in the history
  • Loading branch information
janiversen committed Jul 1, 2023
1 parent ad72f6e commit 7c7ada2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/client_calls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 4 additions & 1 deletion examples/server_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 7c7ada2

Please sign in to comment.