Commit graph

7 commits

Author SHA1 Message Date
Matt Swann
ec2dd475eb Add WiFi reconnection logic to companion radio WiFi interface
The WiFi companion firmware previously had no reconnection handling after
the initial WiFi.begin() call. On ESP32 Arduino core 2.x, the built-in
auto-reconnect is unreliable, so if WiFi drops it never comes back.

This adds a periodic health check (every 60s) in checkRecvFrame() that
detects WiFi disconnection and calls WiFi.reconnect(). The check only
activates after WiFi has successfully connected at least once, so it
won't interfere with the initial connection attempt on startup.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 20:23:42 -07:00
liamcottle
8708fa012a simplify reading frame header 2026-01-04 17:43:25 +13:00
liamcottle
71bb49e556 remove use of dynamic allocation 2026-01-03 16:36:19 +13:00
liamcottle
ed263b0727 implement frame header parising for wifi interface 2026-01-03 15:39:57 +13:00
liamcottle
796b4c705c disconnect existing wifi client when new connection established 2025-08-29 19:50:05 +12:00
Scott Powell
5c4ec1bc22 * SerialWifiInterface: misc tidy-ups 2025-03-04 14:04:47 +11:00
Florent de Lamotte
03293be892 new Heltec_v3_companion_radio_wifi target 2025-03-03 13:26:37 +01:00