CarlosDerSeher / snapclient

snapclient on ESP32
GNU General Public License v3.0
125 stars 16 forks source link

Suggestion: Auto-reconnect on disconnect #47

Closed jonzobot closed 10 months ago

jonzobot commented 11 months ago

I love this project. Works great for me running a LyraT 4.3.

I've been tweaking my server a lot lately and when I restart the server or the Snapserver service, I have to manually power cycle the LyraT's.

I wonder if, on disconnection, the clients could try reconnecting periodically? (in my particular use case, I use a static IP, not mDNS if that matters).

CarlosDerSeher commented 11 months ago

Try using mdns of possible for you. Should work with that, at least for me.

Regarding static IP, will need to check the code to see why it doesn't reconnect automatically. It definitely should though. What does the log say in the event of server restart?

jonzobot commented 10 months ago

Typical. Once I get in a position to debug the thing, it's working fine now. Not sure what the issue was before, but if it comes up again I'll troubleshoot first before posting.

Thanks for replying, this can be closed.