oxan / esphome-stream-server

Stream server (serial-to-wifi bridge) for ESPHome
Other
179 stars 72 forks source link

Unreliable connections with ESPHome > 2021.9 #21

Closed tube0013 closed 1 year ago

tube0013 commented 1 year ago

Serial connections are very unreliable when using this component with any ESPHome Version greater than 2021.9. By unreliable I mean the connection resets every few hours.

robinsmidsrod commented 1 year ago

Do you have any error messages or related information for when the issue happens? When the connection is reset, what do you have to do to get it working again?

tube0013 commented 1 year ago

Connection will get reestablished.

Problem being serial is disconnected frequently for small amounts of time while reconnects and zigbee network restarted.

povlhp commented 1 year ago

Just installed esphome with this on esp32dev board. Inconsistent intervals. Might run 36 hours of 10 minutes. Restart will improve.

oxan commented 1 year ago

You could try the socket-abstraction branch (see PR #25). I've done a major update to use the socket APIs directly instead of through the Arduino libraries, and I hope that also improves reliability. I haven't done any long duration testing myself yet though.

oxan commented 1 year ago

I'll close this now, as I haven't been able to reproduce this with the new socket-based approach. If you still encounter this issue, please reopen the issue and we'll see if we can dive further into it.