feat: semver versioning, FastAPI OTA integration, health alerts via MQTT
- Version.hpp: extract FW_VERSION from main.cpp into shared header
- OTAManager: replace uint16_t version with SemVer struct; update API URLs
to new FastAPI backend (/api/firmware/{hw_type}/{channel}/latest);
add postDownloadTelemetry() and postFlashTelemetry() for fleet visibility
- ConfigManager: remove fwVersion from DeviceConfig (always read from
FW_VERSION constant); saveDeviceConfig/loadDeviceConfig are now no-ops;
fallbackServerUrl replaced with fallbackServerUrls[2] array
- HealthMonitor: add AlertCallback + setAlertCallback() firing on state
transitions (including CLEARED on recovery)
- CommunicationRouter: wire HealthMonitor alert callback on begin();
add publishAlert() and publishInfo() for MQTT status topics
- MQTTDriver: add _alertsTopic + _infoTopic; add publishDirect() for
absolute topic publishing; migrate heartbeat to JsonDocument
- ResponseBuilder, ClientManager, BellEngine: StaticJsonDocument /
DynamicJsonDocument → JsonDocument; remove dead notifyBellsFired()
- docs: reorganise into architecture/, dev/, features/, reference/
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
# Project Vesper — Documentation
|
||||
|
||||
Bell automation firmware for ESP32 (Kincony KC868-A6).
|
||||
|
||||
---
|
||||
|
||||
## Reference
|
||||
|
||||
| File | Description |
|
||||
|---|---|
|
||||
| [reference/api-reference.md](reference/api-reference.md) | **Firmware API v2** — all commands, transports, envelope format |
|
||||
| [reference/firmware-variants.md](reference/firmware-variants.md) | PlatformIO environments, partition tables, build flags, OTA URLs |
|
||||
| [reference/api-reference-v1-legacy.md](reference/api-reference-v1-legacy.md) | Old v1 API (pre-refactor) — kept for historical reference |
|
||||
|
||||
## Architecture
|
||||
|
||||
| File | Description |
|
||||
|---|---|
|
||||
| [architecture/communication-refactor-plan.md](architecture/communication-refactor-plan.md) | Full design doc for the v2 Communication subsystem (CommandBus, Handlers, Transports) |
|
||||
|
||||
## Features
|
||||
|
||||
| File | Description |
|
||||
|---|---|
|
||||
| [features/heartbeat.md](features/heartbeat.md) | MQTT heartbeat — retained 30s status publish |
|
||||
|
||||
## Development
|
||||
|
||||
| File | Description |
|
||||
|---|---|
|
||||
| [dev/platformio-commands.md](dev/platformio-commands.md) | PlatformIO CLI reference |
|
||||
| [dev/common-commands.md](dev/common-commands.md) | Common v1 command snippets (scratch/lab use) |
|
||||
| [dev/features-scratch.md](dev/features-scratch.md) | Feature notes and todo scratch pad |
|
||||
|
||||
## Other
|
||||
|
||||
| File | Description |
|
||||
|---|---|
|
||||
| [roadmap.md](roadmap.md) | Product roadmap |
|
||||
| [SentDevices/](SentDevices/) | Records of deployed devices |
|
||||
Reference in New Issue
Block a user