You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Detect a disconnected board via heartbeat (stop falsely showing "Broadcasting")
The dashboard trusted the last status token forever, so unplugging the ESP left
it claiming "Broadcasting". Add a liveness link:
- Firmware: emit a "PING" beacon ~every 2s from loop().
- Flipper: stamp last_rx_tick on any RX (PING or event); a 1s ViewDispatcher tick
flags link_lost when nothing has arrived for FLYTRAP_LINK_TIMEOUT_MS (5s). The
dashboard then shows "Board disconnected" (hollow indicator) instead of
"Broadcasting", and recovers automatically when the board returns (its reboot
re-runs the handshake). PING is kept out of the console so it doesn't spam it.
Note: both halves must be updated together — the new app expects the beacon, so
an old firmware without PING would read as a lost link when idle.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments