diff --git a/pymodbus/client/serial.py b/pymodbus/client/serial.py index c48e9f43b..8bee112ff 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 ca40ae92a..d2886b5cc 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