From e9ee7c3af363022067ad753d38096fcfb43b02f5 Mon Sep 17 00:00:00 2001 From: Michel F <80367602+MrWaloo@users.noreply.github.com> Date: Mon, 23 Sep 2024 10:38:03 +0200 Subject: [PATCH] Documentation on_connect_callback (#2324) --- pymodbus/client/serial.py | 2 +- pymodbus/client/tcp.py | 2 +- pymodbus/client/tls.py | 2 +- pymodbus/client/udp.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pymodbus/client/serial.py b/pymodbus/client/serial.py index 967c89c15..d307e263f 100644 --- a/pymodbus/client/serial.py +++ b/pymodbus/client/serial.py @@ -39,7 +39,7 @@ class AsyncModbusSerialClient(ModbusBaseClient): :param reconnect_delay_max: Maximum delay in seconds.milliseconds before reconnecting. :param timeout: Timeout for a connection request, in seconds. :param retries: Max number of retries per request. - :param on_reconnect_callback: Function that will be called just before a reconnection attempt. + :param on_connect_callback: Function that will be called just before a connection attempt. .. tip:: **reconnect_delay** doubles automatically with each unsuccessful connect, from diff --git a/pymodbus/client/tcp.py b/pymodbus/client/tcp.py index 96490d14b..20b527885 100644 --- a/pymodbus/client/tcp.py +++ b/pymodbus/client/tcp.py @@ -30,7 +30,7 @@ class AsyncModbusTcpClient(ModbusBaseClient): :param reconnect_delay_max: Maximum delay in seconds.milliseconds before reconnecting. :param timeout: Timeout for a connection request, in seconds. :param retries: Max number of retries per request. - :param on_reconnect_callback: Function that will be called just before a reconnection attempt. + :param on_connect_callback: Function that will be called just before a connection attempt. .. tip:: **reconnect_delay** doubles automatically with each unsuccessful connect, from diff --git a/pymodbus/client/tls.py b/pymodbus/client/tls.py index deddd6bc2..9c3735600 100644 --- a/pymodbus/client/tls.py +++ b/pymodbus/client/tls.py @@ -29,7 +29,7 @@ class AsyncModbusTlsClient(AsyncModbusTcpClient): :param reconnect_delay_max: Maximum delay in seconds.milliseconds before reconnecting. :param timeout: Timeout for a connection request, in seconds. :param retries: Max number of retries per request. - :param on_reconnect_callback: Function that will be called just before a reconnection attempt. + :param on_connect_callback: Function that will be called just before a connection attempt. .. tip:: **reconnect_delay** doubles automatically with each unsuccessful connect, from diff --git a/pymodbus/client/udp.py b/pymodbus/client/udp.py index 48b71edab..6d36f93dc 100644 --- a/pymodbus/client/udp.py +++ b/pymodbus/client/udp.py @@ -31,7 +31,7 @@ class AsyncModbusUdpClient(ModbusBaseClient): :param reconnect_delay_max: Maximum delay in seconds.milliseconds before reconnecting. :param timeout: Timeout for a connection request, in seconds. :param retries: Max number of retries per request. - :param on_reconnect_callback: Function that will be called just before a reconnection attempt. + :param on_connect_callback: Function that will be called just before a connection attempt. .. tip:: **reconnect_delay** doubles automatically with each unsuccessful connect, from