gysmo38 / mitsubishi2MQTT

Mitsubishi to MQTT with ESP8266 module
GNU Lesser General Public License v2.1
390 stars 139 forks source link

Issue #67 - Auto restart on WiFi drop #104

Closed loadrunner42 closed 3 years ago

loadrunner42 commented 3 years ago

restarts the board after timeout when WiFi dropped or in captive ap mode. Changed password in AP mode to match login_password

ghost commented 3 years ago

What if login password is not set? it's optional. DHCP failure needs to be handled otherwise it will require a hard power reset.

loadrunner42 commented 3 years ago

In that case it defaults to no password. I think this makes more sense than the current solution to use the SSID as the password.

loadrunner42 commented 3 years ago

Two issues that this solves are:

1) No longer requires a firmware flash when wifi is permanently lost as it will revert to AP mode after the timeout (Currently 5min). This also allows easy confirmation that it’s just a Wi-Fi issue when the connection is lost.

2) No longer need to power cycle the aircon to get it to re-connect after the Wi-Fi AP is reset or there is a power outage.

gysmo38 commented 3 years ago

For me it look good. Thank you :)