Repository navigation
Expand file tree
/
Copy pathplatformio.ini
More file actions
44 lines (39 loc) · 1.67 KB
/
Copy pathplatformio.ini
File metadata and controls
44 lines (39 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
; PlatformIO Project Configuration File
;
; ESP32-C3 Modbus Bridge:
; Deye SUN-xK-SG04LP3 Hybrid Inverter (Modbus RTU, RS485)
; ---> ESP32-C3 cache
; ---> MQTT-Publish (Home-Assistant-Auto-Discovery)
; ---> MQTT-Broker (Mosquitto, HA, ...)
[env:esp32-c3-devkitm-1]
platform = espressif32@^6.7.0
board = esp32-c3-devkitm-1
framework = arduino
monitor_speed = 115200
upload_speed = 921600
; Versionierung: stempelt Release-Version (Git-Tag), Build-Nummer und Datum
; als Compiler-Defines ein (siehe version.py / include/version.h)
extra_scripts = pre:version.py
; min_spiffs.csv hat zwei OTA-Partitionen (ota_0 + ota_1) - Pflicht fuer OTA.
board_build.partitions = min_spiffs.csv
board_build.flash_mode = qio
board_build.f_flash = 80000000L
build_flags =
; CORE_DEBUG_LEVEL=0: schaltet die Arduino-/Library-Logs (log_e/w/i) ab.
; Grund: bei erschoepftem LWIP-TCP-PCB-Pool feuert AsyncTCP "tcp_accept:
; pcb is NULL" als log_e im Dauertakt ueber die LANGSAME USB-CDC-Serial.
; Das saettigt den async_tcp-Task (100% CPU) und hungert die anderen Tasks
; aus -> TASK_WDT-Reboot. Hier zusaetzlich kritisch, weil AsyncMqttClient
; ebenfalls ueber AsyncTCP laeuft (MQTT-Reconnects erhoehen den PCB-Druck).
; Unsere eigene seriallog (Serial.print direkt) bleibt davon unberuehrt.
-DCORE_DEBUG_LEVEL=0
-DARDUINO_USB_CDC_ON_BOOT=1
-DARDUINO_USB_MODE=1
-std=gnu++17
build_unflags =
-std=gnu++11
lib_deps =
https://github.com/eModbus/eModbus.git#v1.7.4.stable
https://github.com/ESP32Async/ESPAsyncWebServer.git#v3.7.4
https://github.com/marvinroger/async-mqtt-client.git#v0.9.0
bblanchon/ArduinoJson @ ^7.2.1