Add WiFi disconnect watchdog + re-enable debug logging

- Remove -DNDEBUG to get LOG_TRACE output for WiFi disconnect investigation
- Add WiFi watchdog in main loop: detects WiFi loss, prints diagnostics
  (WiFi status, RSSI, heap, TCP state, bridge stats), then halts serial
  output after 5s grace period so operator can read the last log lines
- Device keeps running as LoRa repeater even when serial is frozen
- Reboot required to resume serial output
This commit is contained in:
James L
2026-02-25 10:23:36 -05:00
parent 50e392c45b
commit 8ee8e86563
2 changed files with 68 additions and 1 deletions

View File

@@ -342,7 +342,7 @@ build_flags =
-DARDUINO_USB_CDC_ON_BOOT=1
-DBOARD_HAS_PSRAM=1
-DBOUNDARY_MODE
-DNDEBUG
;-DNDEBUG ; re-enable debug output for WiFi disconnect investigation
; --- Boundary mode defaults (override via EEPROM at runtime) ---
; TCP server mode (0=server, 1=client)
-DBOUNDARY_TCP_MODE=0