Files
kc868-a2_solar/platformio.ini
T
gilles a8f0d6ccba Initial commit — KC868-A2 contrôleur solaire ESP32
Fonctionnalités :
- Lecture RS485 Modbus Epever Tracer 4210N (115200 bps, FC03/FC04/FC16)
- Moteur de règles JSON (LittleFS) — commande automatique des relais
- Interface web mobile-first (dashboard, règles, config, historique, EPEVER, debug)
- WiFi AP+STA simultanés avec reconnexion automatique et portail captif
- mDNS configurable (pv.local par défaut)
- Configuration registres EPEVER depuis l'UI (18 registres holding)
- Historique basse/haute résolution avec graphes canvas
- VPN WireGuard optionnel (désactivé par défaut, config via UI)
- OTA firmware + filesystem via ElegantOTA
- Deep sleep / économie d'énergie

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-09 19:25:01 +02:00

33 lines
919 B
INI

; PlatformIO Project Configuration File
; https://docs.platformio.org/page/projectconf.html
[common]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
board_build.filesystem = littlefs
lib_deps =
bblanchon/ArduinoJson @ ^7.0.0
https://github.com/me-no-dev/AsyncTCP.git
https://github.com/me-no-dev/ESPAsyncWebServer.git
ayushsharma82/ElegantOTA @ ^3.1.0
emelianov/modbus-esp8266 @ ^4.1.0
; --- Cible physique KC868-A2 ---
[env:kc868_a2]
extends = common
build_flags = -D ELEGANTOTA_USE_ASYNC_WEBSERVER=1
lib_deps =
${common.lib_deps}
https://github.com/ciniml/WireGuard-ESP32-Arduino.git
; --- Build QEMU : WiFi/sleep désactivés, Modbus + règles actifs ---
; Compiler : pio run -e qemu
; Copier : cp .pio/build/qemu/firmware.bin emulator/firmware/
[env:qemu]
extends = common
build_flags =
-D ELEGANTOTA_USE_ASYNC_WEBSERVER=1
-D QEMU_BUILD=1