feat(F-043,F-044): redesign network.info and network.status command split

network.info now returns all addressing/identity fields needed by the console
network panel: ip, subnet, gateway, dns, mac, hostname, ssid, connection_type.
Previously only returned ip, gateway, dns.

network.status slimmed to pure runtime/health data: connected, ap_mode, rssi,
uptime_ms, state. Removed ip, mac, hostname, ssid, type — static facts now
belong in network.info.

Feature catalog updated with F-043 and F-044 detail sections.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-07-13 00:53:37 +03:00
co-authored by Claude Sonnet 4.6
parent eb440a9888
commit 3582218b54
2 changed files with 51 additions and 16 deletions
+41
View File
@@ -52,6 +52,8 @@ Every feature — user-facing or significant internal mechanism — is listed he
| F-040 | Combined relay config command (`relay.set_config`) | v2.1.1 | Stable |
| F-041 | Output numbering convention enforced — 1-based everywhere except raw chip pin | v2.1.1 | Stable |
| F-042 | Combined clock config commands (`clock.set_config` / `clock.set_alerts_config`) | v2.1.1 | Stable |
| F-043 | `network.info` expanded — subnet, MAC, hostname, SSID, connection type | v2.1.1 | Stable |
| F-044 | `network.status` slimmed — pure runtime state (connected, state, RSSI, uptime, AP mode) | v2.1.1 | Stable |
---
@@ -566,3 +568,42 @@ Two batch commands that each collapse multiple individual clock commands into on
All fields optional — at least one required. Single `saveClockConfig()` call per command regardless of how many fields are set.
Subsystem: `src/Communication/Handlers/ClockHandler/ClockHandler.cpp`
---
### F-043 — `network.info` expanded
`network.info` now returns the full set of fields needed by the console network panel:
| Field | Source |
|---|---|
| `ip` | `WiFi.localIP()` |
| `subnet` | `WiFi.subnetMask()` |
| `gateway` | `WiFi.gatewayIP()` |
| `dns` | `WiFi.dnsIP()` |
| `mac` | `WiFi.macAddress()` |
| `hostname` | `NetworkConfig.hostname` |
| `ssid` | `WiFi.SSID()` |
| `connection_type` | `"WIFI"` / `"ETHERNET"` / `"AP"` |
Previously only returned `ip`, `gateway`, `dns`. Fields `mac`, `hostname`, `ssid` were spread across `network.status`.
Subsystem: `src/Communication/Handlers/NetworkHandler/NetworkHandler.cpp`
---
### F-044 — `network.status` slimmed to pure runtime state
`network.status` now returns only live/volatile data useful for health monitoring and polling:
| Field | Notes |
|---|---|
| `connected` | bool |
| `ap_mode` | bool |
| `rssi` | dBm, live WiFi signal strength |
| `uptime_ms` | `millis()` — time since last boot |
| `state` | Connection state machine: `DISCONNECTED` / `CONNECTING` / `CONNECTED_WIFI` / `CONNECTED_ETHERNET` / `RECONNECTING` / `AP_MODE` |
Removed from `network.status`: `ip`, `mac`, `hostname`, `ssid`, `type` — these are static addressing facts, now served by `network.info`.
Subsystem: `src/Communication/Handlers/NetworkHandler/NetworkHandler.cpp`