async client behavour #2323
-
I have written something like the HA modbus integration but for another system called Jeedom. So users can configure it through a web interface. I have used the async clients.
The exceptions are catched and logged.
Can this exception occur because of the connection quality? I did not encounter such errors at home where all my Ethernet modbus equipment are wired. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
It means that the device is not connected to, and did not accept a connect within the configured retries. I cannot tell you more without a debug log. |
Beta Was this translation helpful? Give feedback.
-
The log may not be in the desired format... But it is the format of Jeedom. I have deleted the rows from my plugin but the request execute and the error. So here is the log arround the error:
I guess, I could use the edit:
So I have implemented a on_connect_callback function that handels this case. Is that the proper way to do it? |
Beta Was this translation helpful? Give feedback.
-
Your device or something in between closes the connect. Some devices needs a request every 20-30 seconds not to close the connection. |
Beta Was this translation helpful? Give feedback.
Your device or something in between closes the connect.
"-> transport: received eof"
Some devices needs a request every 20-30 seconds not to close the connection.