-
Notifications
You must be signed in to change notification settings - Fork 947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AsyncModbusTcpClient ignores reconnect_delay == 0 #1203
Comments
|
Nice enhancement, would you mind submitting a pull request ? |
Cavaler
added a commit
to Cavaler/pymodbus
that referenced
this issue
Nov 28, 2022
janiversen
pushed a commit
that referenced
this issue
Nov 28, 2022
Thanks again for the PR, its merged to dev, and will be available in version 3.1 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
pymodbus 3.0.2
Documentation says:
However, creating AsyncModbusTcpClient(reconnect_delay=0) just causes it to reconnect immediately.
I would suggest checking for delay_ms in protocol_lost_connection() instead of host. Same in connect() on error.
And also set delay_ms to 0 in close(), this would allow calling connect() again on previously close()'s client.
The text was updated successfully, but these errors were encountered: