-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathplatformio.ini
More file actions
66 lines (63 loc) · 2.75 KB
/
Copy pathplatformio.ini
File metadata and controls
66 lines (63 loc) · 2.75 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
; Shared config for every build target. Board-specific bits (the board id and
; the S3-only USB-CDC flag) live in the per-env sections below.
[common]
platform = espressif32
framework = arduino
monitor_speed = 115200
upload_speed = 921600
board_build.partitions = partitions_ota.csv
extra_scripts =
pre:scripts/version.py
pre:scripts/precompress_settings.py
lib_deps =
h2zero/NimBLE-Arduino@^1.4.1
knolleary/PubSubClient@^2.8
bblanchon/ArduinoJson@^7.3.0
; 3.0 task #78 — ESPAsyncWebServer + its AsyncTCP dependency.
; PINNED to a known-good tag (NOT a caret wildcard) because
; mathieucarbou's fork has had breaking changes between
; minor releases. AsyncTCP is auto-pulled by ESPAsyncWebServer's
; own lib_deps; we don't pin it here separately.
; ESPAsyncWebServer also provides AsyncWebSocket which replaces
; the previously-pinned links2004/WebSockets (task #82 migration).
mathieucarbou/ESPAsyncWebServer@3.6.0
lib_ldf_mode = deep
build_flags =
-D CONFIG_BT_NIMBLE_ROLE_CENTRAL=1
-D CONFIG_BT_NIMBLE_ROLE_PERIPHERAL=0
-D CONFIG_BT_NIMBLE_ROLE_OBSERVER=1
-D CONFIG_BT_NIMBLE_ROLE_BROADCASTER=0
-D CONFIG_BT_NIMBLE_MAX_CONNECTIONS=1
; 3.0 task #78 — async webserver migration build flag.
; Default 1 = production: async on :80 (sync retired in STA per
; commit 6bf557b — when WB_ASYNC_WEB=0, STA mode has NO HTTP
; server at all because the async server's .cpp is compiled out
; behind #if WB_ASYNC_WEB and the sync server's beginSTA() no
; longer binds a listener. Set to 0 only for sync-only legacy
; testing builds. Both paths build clean.
-D WB_ASYNC_WEB=1
; ESP32-S3-DevKitC-1 (the reference/primary board). USB-CDC serial on boot.
; 8 MB flash -> the larger partition table (3 MB OTA app slots vs the WROOM's
; 1.875 MB) for app-growth headroom. WROOM stays on the 4 MB partitions_ota.csv.
[env:esp32s3]
extends = common
board = esp32-s3-devkitc-1
board_build.partitions = partitions_8mb.csv
build_flags =
${common.build_flags}
-D ARDUINO_USB_CDC_ON_BOOT=1
; Classic ESP32-WROOM-32 (esp32dev) — the common/cheaper module (#154). 4 MB
; flash fits partitions_ota.csv exactly. No USB-CDC (serial is UART0), so the
; ARDUINO_USB_CDC_ON_BOOT flag is omitted. chip_temp has no usable die sensor
; on classic ESP32 and is already gated off (wb_web.h) — the Gateway
; Temperature entity just reads unavailable.
[env:esp32dev]
extends = common
board = esp32dev
; For OTA: pio run -e ota -t upload --upload-port <IP> [--upload-flags="--auth=<password>"]
; The OTA password is shown in the serial log on boot.
; If you've set a web auth password, use that. Otherwise it's "wb-XXXXXX" (last 6 hex of MAC).
[env:ota]
extends = env:esp32s3
upload_protocol = espota
upload_port = wallbox-gw.local