python-anthemav icon indicating copy to clipboard operation
python-anthemav copied to clipboard

Command retry on connection lost

Open orenskl opened this issue 4 years ago • 2 comments

I added a command resend mechanism to allow on/off of the receiver in case the connection is lost

orenskl avatar Apr 29 '21 06:04 orenskl

What is the reason to add this mechanism? The library is reconnecting itself as soon as the TCP connection is lost. Is it that the connection was lost or that the command failed to execute the first time?

Hyralex avatar Jul 14 '21 07:07 Hyralex

I will try to describe the problem I was trying to solve. I tried to connect to my MRX from two separate end points, one is the home assistant and one is the MRX iOS app. Once I connect from home assistant the TCP connection stays ok, but when I turn on the iOS app the connect the previous connect to the home assistant gets lost. If I now turn on the MRX from the home assistant I get an error since the connection is lost.

orenskl avatar Jul 14 '21 16:07 orenskl