Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
carlo_gavazzi: set minimum timeout to 500 ms
The network stack in the meter can lock up if too small a timeout is used. Make sure this remains unlikely.
- Loading branch information
17a53b9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@donnib https://github.com/victronenergy/dbus-modbus-client/search?q=min_timeout&type=code
17a53b9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes you are right, it's overriden since you are inherited one of the classes in device.py ..... hmm. don't know what to say...
17a53b9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does that work now or not?
Ok I debugged it via MQTT:
It seems to work, if I did it right.
Problem is, that I have still lockups ...
Edit:
Would it be possible to "log" the situation when a TCP reconnect is happen?