Complete IoT monitoring platform for Acuvim II power meters via ESP32. Firmware (Phases 1-7): - ESP32-WROVER-B (TTGO T-Call v1.4) with RS485 Modbus RTU - WiFi STA+AP concurrent mode with GSM/GPRS failover - Transport abstraction layer with 4 priority modes - MQTT protocol with 20 commands, LWT, QoS, exponential backoff - SD card offline buffering with JSONL rotation and non-blocking drain - OTA firmware updates with dual partition rollback protection - Watchdog timer, crash loop detection, Acuvim health monitoring - Captive portal provisioning with AP mode Console backend (Phase 8): - .NET 10 minimal API with PostgreSQL + EF Core - JWT authentication, SignalR real-time updates - MQTTnet 5.x bridge service with health monitoring - Device, telemetry, firmware, alert, group management - Rate limiting, security headers, Swagger/OpenAPI Frontend (Phase 9): - React 18 + TypeScript + Vite with Ant Design 5 - ECharts telemetry visualization, TanStack Query - SignalR live updates, device management UI - Dashboard, fleet management, firmware deployment Testing & Production (Phase 10): - 28 firmware unit tests (Modbus, JSON, config, version) - 23 xUnit backend tests (device, telemetry, command, alert) - Docker Compose with nginx, TLS MQTT, PostgreSQL - Production deployment, commissioning, and troubleshooting docs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
29 lines
659 B
INI
29 lines
659 B
INI
[env:ttgo-t-call]
|
|
platform = espressif32
|
|
board = esp-wrover-kit
|
|
framework = arduino
|
|
monitor_speed = 115200
|
|
upload_speed = 921600
|
|
|
|
board_build.partitions = partitions_ota.csv
|
|
board_build.f_cpu = 240000000L
|
|
board_build.f_flash = 80000000L
|
|
board_build.flash_mode = qio
|
|
|
|
board_build.filesystem = littlefs
|
|
|
|
lib_deps =
|
|
4-20ma/ModbusMaster@^2.0.1
|
|
bblanchon/ArduinoJson@^7.0.0
|
|
knolleary/PubSubClient@^2.8.0
|
|
me-no-dev/ESPAsyncWebServer@^1.2.3
|
|
me-no-dev/AsyncTCP@^1.1.1
|
|
vshymanskyy/TinyGSM@^0.11.7
|
|
|
|
build_flags =
|
|
-DBOARD_HAS_PSRAM
|
|
-DCORE_DEBUG_LEVEL=3
|
|
-DFW_VERSION=\"1.0.0\"
|
|
-DTINY_GSM_MODEM_SIM800
|
|
-DTINY_GSM_RX_BUFFER=1024
|