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
- PROTOCOL.md: document BYE, IP, and the PING liveness beacon (+ handshake diagram
and the 5s board-disconnect timeout).
- ARCHITECTURE.md / HOW-IT-WORKS.md: mention the join/leave/IP/PING events, the
live clients view, and the loading / board-disconnected dashboard states.
- CHANGELOG: note the live clients view, board-disconnect detection, loading
screen, and PING beacon; date 0.3.0.
- Add .github/workflows/release.yml: on a v* tag, build the fap + ESP firmware and
publish a GitHub Release with the images attached.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/PROTOCOL.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@ All line-oriented. The Flipper parser matches on the leading token.
37
37
|`BYE mac=<AA:BB:...>`| A station left the AP — the Flipper drops it from the live client list. |
38
38
|`IP mac=<AA:BB:...> ip=<ip>`| DHCP assigned a station its IP (MAC resolved from the soft-AP table). Falls back to `IP ip=<ip>` when the MAC can't be resolved; the Flipper then pairs it to the most recent client without an IP. |
39
39
|`CRED ip=<ip>&<field>=<val>&...`| A form was submitted — the client IP plus every submitted field, url-encoded. One line per submission. |
40
+
|`PING`| Liveness beacon, emitted ~every 2s. The Flipper uses it to detect an unplugged board (no `PING`/traffic for 5s ⇒ link lost); it's dropped from the console so it doesn't spam. |
40
41
41
42
## Handshake
42
43
@@ -56,12 +57,15 @@ Flipper ESP
56
57
| <---- IP mac=... ip=...(DHCP leases it an address)
57
58
| <---- CRED ip=...&... (a form is submitted)
58
59
| <---- BYE mac=... (the phone leaves)
60
+
| <---- PING (~every 2s, all the while)
59
61
| |
60
62
| stop\n / reset\n ----> | (tear down / reboot)
61
63
```
62
64
63
65
If the ESP emits `STATUS boot` mid-session (it rebooted), the Flipper re-sends
64
-
`sethtml` automatically to recover.
66
+
`sethtml` automatically to recover. If `PING` (and all other traffic) stops for
67
+
5s, the Flipper flags the link as lost and the dashboard shows **Board
0 commit comments