Repository navigation
Expand file tree
/
Copy pathplatformio.ini
More file actions
128 lines (122 loc) · 5.43 KB
/
Copy pathplatformio.ini
File metadata and controls
128 lines (122 loc) · 5.43 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[common]
; Pinned: espressif32 8.x ships Arduino core 3.x, which this firmware does not
; build with yet (watchdog / BLE API changes). Upgrade deliberately, see README.
platform = espressif32@7.0.1
board = esp32doit-devkit-v1
framework = arduino
check_tool = clangtidy
; Stove this firmware is built for: stored in the firmware (scripts/buildinfo.py)
; and shown in /api/state, the web app, MQTT discovery and the metrics
custom_stove_model = Piazzetta P220 M
build_flags = -DCORE_DEBUG_LEVEL=2
-DCONFIG_BT_NIMBLE_PINNED_TO_CORE=1
monitor_filters = colorize
lib_ldf_mode = deep+
board_build.partitions = min_spiffs.csv
extra_scripts = pre:scripts/buildinfo.py
pre:scripts/skip_easybutton_touch.py
pre:scripts/gzip_assets.py
; web app and spec are embedded gzipped (scripts/gzip_assets.py), the CA bundle
; is for HTTPS to GitHub (firmware update check, src/fwUpdate.h)
board_build.embed_files =
docs/openapi.json.gz
web/app.html.gz
certs/x509_crt_bundle.bin
web/icons/icon.svg
web/icons/icon-180.png
lib_deps =
https://github.com/tzapu/WiFiManager.git#v2.0.17
evert-arias/EasyButton@^2.0.3
lnlp/EasyLed@^1.1.0
bblanchon/ArduinoJson@^6.19.2
lennarthennigs/ESP Telnet@^2.2.3
h2zero/NimBLE-Arduino@^1.4.2
knolleary/PubSubClient@^2.8
[env:esp32doit-devkit-v1-ota]
platform = ${common.platform}
board = ${common.board}
framework = ${common.framework}
check_tool = ${common.check_tool}
build_flags = ${common.build_flags}
monitor_filters = ${common.monitor_filters}
lib_ldf_mode = ${common.lib_ldf_mode}
board_build.partitions = ${common.board_build.partitions}
board_build.embed_files = ${common.board_build.embed_files}
lib_deps = ${common.lib_deps}
extra_scripts = ${common.extra_scripts}
custom_stove_model = ${common.custom_stove_model}
upload_protocol = espota
upload_port = 192.168.50.222
; OTA password = the API key of the controller (web app: Settings, or GET /api/auth):
; export OPB_API_KEY=<key>
upload_flags = --auth=${sysenv.OPB_API_KEY}
monitor_port = socket://192.168.50.222:23
[env:esp32doit-devkit-v1-http]
; Firmware update over HTTP (POST /api/update) - streams the image in one go,
; several times faster than espota which waits for an ack after every 1 KB.
; Needs firmware that already contains /api/update, and the API key of the
; controller in the environment: export OPB_API_KEY=<key> (GET /api/auth).
platform = ${common.platform}
board = ${common.board}
framework = ${common.framework}
check_tool = ${common.check_tool}
build_flags = ${common.build_flags}
monitor_filters = ${common.monitor_filters}
lib_ldf_mode = ${common.lib_ldf_mode}
board_build.partitions = ${common.board_build.partitions}
board_build.embed_files = ${common.board_build.embed_files}
lib_deps = ${common.lib_deps}
extra_scripts = ${common.extra_scripts}
custom_stove_model = ${common.custom_stove_model}
upload_protocol = custom
upload_port = 192.168.50.222
upload_command = curl --fail-with-body --progress-bar -o /dev/stdout -H "X-API-Key: ${sysenv.OPB_API_KEY}" -F "firmware=@$SOURCE" http://$UPLOAD_PORT/api/update
monitor_port = socket://192.168.50.222:23
[env:esp32doit-devkit-v1-serial]
platform = ${common.platform}
board = ${common.board}
framework = ${common.framework}
check_tool = ${common.check_tool}
build_flags = ${common.build_flags}
monitor_filters = ${common.monitor_filters}
monitor_speed = 115200
lib_ldf_mode = ${common.lib_ldf_mode}
board_build.partitions = ${common.board_build.partitions}
board_build.embed_files = ${common.board_build.embed_files}
lib_deps = ${common.lib_deps}
extra_scripts = ${common.extra_scripts}
custom_stove_model = ${common.custom_stove_model}
upload_port = /dev/tty.usbserial-0001
[env:esp32doit-devkit-v1-ble-ota]
platform = ${common.platform}
board = ${common.board}
framework = ${common.framework}
check_tool = ${common.check_tool}
build_flags = ${common.build_flags}
monitor_filters = ${common.monitor_filters}
lib_ldf_mode = ${common.lib_ldf_mode}
board_build.partitions = ${common.board_build.partitions}
board_build.embed_files = ${common.board_build.embed_files}
lib_deps = ${common.lib_deps}
upload_protocol = custom
extra_scripts = ${common.extra_scripts}
scripts/ble_ota_upload.py
custom_stove_model = ${common.custom_stove_model}
[env:native]
; Unit tests of the pure logic (lib/pelletcore) on the development machine:
; pio test -e native
; Needs a host C++ compiler (clang on macOS, gcc on Linux).
platform = native
test_framework = unity
build_flags = -std=c++17 -Wall -Wextra
lib_deps =
lib_compat_mode = off