ALAZ Gateway and Core Unit expose a full-featured REST + WebSocket + Diagnostic API running on your local network. No cloud required — everything lives on your hardware.
Accessible via the local IP of each ALAZ Gateway device from any browser or HTTP client:
| Endpoint | Method | Description |
|---|---|---|
| /diag | GET | Full diagnostic bundle (all modules) |
| /diag/radio | GET | ESP-NOW radio stats (RSSI, packet drops) |
| /diag/snap | GET | Instant state snapshot (all module states) |
| /diag/events | GET | Last 128 event ring (ACK, timeout, connection) |
| /sys | GET | System health (heap, CPU, uptime, WiFi RSSI) |
| /nodes | GET | Full node registry (metrics, bank ID, RSSI) |
| /cmd | POST | Send relay command (node_id, relay_id, state) |
| /cfg/mapping_v1.json | GET | Bank mapping configuration |
The Core maintains persistent WebSocket connections to all Gateways. Sensor data streams with <20ms latency. HTTP fallback activates on disconnection.
The /ts/summary.txt endpoint outputs Prometheus-compatible time-series data. Ready for Grafana integration out of the box.
Every Gateway and Sensor node supports wireless firmware updates (OTA) via the portal interface. No physical field access required.
Every Relay Node exposes diagnostic data via its local AP portal during pairing and configuration:
| Endpoint | Contents |
|---|---|
| /diag | ACK queue, TX ok/fail, rate-limit counters, last ACK latency (ms) |
| /diag (mem) | Internal heap: free/largest/min + frag%, PSRAM: free/largest/min |
Comprehensive Swagger/OpenAPI documentation and integration guides are currently in preparation.