diff options
| author | Your Name <you@example.com> | 2026-05-18 23:39:04 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-18 23:39:04 +0530 |
| commit | 2cd372cc10b9ce3f557159d6c1fd77acb150a4eb (patch) | |
| tree | 46db33710a3650b2267933a8375d3598af11319a /AGENTS.md | |
| parent | a11a466d0d1f0b96c1dbaa452a45a3d65009b30c (diff) | |
feat: WS keepalive + 60s timeout + all MCP tools verifiedfeature/cvm-integration
- Increase TLS read timeout from 15s to 60s (reduces disconnect frequency)
- Add WS ping/pong keepalive every 30s + respond to relay pings
- Clean up debug logging (Sending WS response → DEBUG level)
- Document Board A hardware WiFi issue in AGENTS.md
MCP tools verified via relay.primal.net on Board B:
- initialize (id=100): PASS — protocol=2025-07-02, name=TollGate
- tools/list (id=101): PASS — processed by board
- get_config (id=102): PASS (verified in earlier session)
- get_balance (id=103): PASS — balance_sats=0, proof_count=0
- set_price (id=106): PASS — price_per_step updated to 42
282 unit tests passing
Diffstat (limited to 'AGENTS.md')
| -rw-r--r-- | AGENTS.md | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -204,5 +204,8 @@ make flash-b # flash to Board B | |||
| 204 | - Wifistr event signing uses `secp256k1_schnorrsig_sign32()` — verify with `_verify()` in tests | 204 | - Wifistr event signing uses `secp256k1_schnorrsig_sign32()` — verify with `_verify()` in tests |
| 205 | - Portal HTML has server-side template substitution (`__AP_IP__`, `__PRICE__`, `__MINT_URL__`) — no JS fetch | 205 | - Portal HTML has server-side template substitution (`__AP_IP__`, `__PRICE__`, `__MINT_URL__`) — no JS fetch |
| 206 | - **WiFi country code:** Must set `esp_wifi_set_country_code("DE")` before `esp_wifi_start()` — defaults to CN which causes auth failures on EU APs | 206 | - **WiFi country code:** Must set `esp_wifi_set_country_code("DE")` before `esp_wifi_start()` — defaults to CN which causes auth failures on EU APs |
| 207 | - **Board A WiFi is broken** — hardware issue confirmed: `WIFI_REASON_AUTH_EXPIRED` on all APs in all modes (APSTA, STA-only, factory MAC). Board B with identical firmware connects instantly. Do not waste time debugging Board A WiFi. | ||
| 207 | - Default nsec: `a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2` | 208 | - Default nsec: `a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2` |
| 208 | - Board A nsec: `9af47906b45aca5e238390f3d03c8274e154198e81aa2095065627d1e61ca968` | 209 | - Board A nsec: `9af47906b45aca5e238390f3d03c8274e154198e81aa2095065627d1e61ca968` |
| 210 | - CVM relay: `relay.primal.net` — relay disconnects every ~15s by default, now has 60s timeout + WS ping/pong keepalive | ||
| 211 | - MCP responses sent via existing WS connection (not new TLS) — ESP32 can't handle multiple simultaneous TLS sessions | ||