mirror of
https://github.com/torlando-tech/pyxis.git
synced 2026-08-04 01:40:33 +00:00
connect_wifi() never enabled auto-reconnect, and the loop's "WiFi reconnect check" only re-attempted on the manual Settings -> Reconnect button. So a dropped association left the device offline (no TCP, no AutoInterface, "no connection" in the status bar) until a reboot. Enable WiFi.setAutoReconnect(true) + persistent, and add a non-blocking backstop in the main loop that re-issues WiFi.begin() every ~15s while disconnected -- setAutoReconnect alone doesn't cover every disconnect reason. Verified the SSID/AP are fine (connects at boot); closes the stay-offline-until-reboot gap. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UWZuYkHBRqNb6BZHV8sTG5