-
Notifications
You must be signed in to change notification settings - Fork 46
/
platformio.ini
271 lines (209 loc) · 6.21 KB
/
platformio.ini
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
;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
[platformio]
src_dir = ./examples/
lib_dir = .
[debug]
esp32_none = -DCORE_DEBUG_LEVEL=0
none = -DDEBUG_LEVEL=NONE
esp32_error = -DCORE_DEBUG_LEVEL=1
error = -DDEBUG_LEVEL=ERROR
esp32_warn = -DCORE_DEBUG_LEVEL=2
warn = -DDEBUG_LEVEL=WARN
esp32_info = -DCORE_DEBUG_LEVEL=3
info = -DDEBUG_LEVEL=INFO
esp32_debug = -DCORE_DEBUG_LEVEL=4
debug = -DDEBUG_LEVEL=DBG
esp32_verbose = -DCORE_DEBUG_LEVEL=5
verbose = -DDEBUG_LEVEL=VERBOSE
default_level = ${debug.warn}
default_esp32_level = ${debug.esp32_warn}
[env]
upload_speed = 921600
monitor_speed = 921600
;upload_port = COM17
[esp32_common]
platform = espressif32
board = esp32dev
framework = arduino
board_build.flash_mode = dout
board_build.partitions = min_spiffs.csv
build_flags =
-std=c++11
${debug.default_level}
-D LED_BUILTIN=5
${debug.default_esp32_level}
;debug_tool = esp-prog
;build_type = debug
;debug_build_flags = -O0 -g -ggdb
upload_protocol = esp-prog
;debug_speed = 2000
;debug_init_break = tbreak setup
monitor_filters = time , esp32_exception_decoder
monitor_rts = 0
monitor_dtr = 0
lib_deps =
bblanchon/ArduinoJson
knolleary/PubSubClient
https://github.com/gmag11/ESPAsyncWiFiManager.git
me-no-dev/ESP Async WebServer
sabas1080/CayenneLPP
xoseperez/DebounceEvent
https://github.com/gmag11/CryptoArduino.git
;https://github.com/gmag11/EnigmaIOT.git
milesburton/DallasTemperature
[esp8266_common]
platform = espressif8266
board = esp12e
framework = arduino
upload_resetmethod = nodemcu
board_build.ldscript = eagle.flash.4m1m.ld
monitor_filters = time, esp8266_exception_decoder
monitor_rts = 0
monitor_dtr = 0
build_flags =
-std=c++11
-D PIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_191122
-D LED_BUILTIN=2
${debug.default_level}
lib_deps =
bblanchon/ArduinoJson
knolleary/PubSubClient
https://github.com/gmag11/ESPAsyncWiFiManager.git
me-no-dev/ESP Async WebServer
sabas1080/CayenneLPP
xoseperez/DebounceEvent
https://github.com/gmag11/CryptoArduino.git
;https://github.com/gmag11/EnigmaIOT.git
[esp8266_node_common]
extends = esp8266_common
board_build.ldscript = eagle.flash.2m64.ld
board = esp12e
[env:esp32-MQTTGateway-SSL]
extends = esp32_common
build_src_filter = -<*> +<EnigmaIOTGatewayMQTT/>
[env:esp32-MQTTGateway-NoSSL]
extends = esp32_common
build_src_filter = -<*> +<EnigmaIOTGatewayMQTT/>
build_flags = ${esp32_common.build_flags} -D NOSSL
[env:esp8266-MQTTGateway]
extends = esp8266_common
build_src_filter = -<*> +<EnigmaIOTGatewayMQTT/>
[env:esp32-DummyGateway]
extends = esp32_common
build_src_filter = -<*> +<EnigmaIOTGatewayDummy/>
[env:esp8266-DummyGateway]
extends = esp8266_common
build_src_filter = -<*> +<EnigmaIOTGatewayDummy/>
[env:esp8266-Node]
extends = esp8266_node_common
build_src_filter = -<*> +<enigmaiot_node/>
[env:esp32-Node]
extends = esp32_common
build_src_filter = -<*> +<enigmaiot_node/>
[env:esp8266-NodeLedFlasher]
extends = esp8266_node_common
build_src_filter = -<*> +<enigmaiot_led_flasher/>
[env:esp32-NodeLedFlasher]
extends = esp32_common
build_src_filter = -<*> +<enigmaiot_led_flasher/>
[env:esp8266-NodeMsgPack]
extends = esp8266_node_common
build_src_filter = -<*> +<enigmaiot_node_msgpack/>
[env:esp32-NodeMsgPack]
extends = esp32_common
build_src_filter = -<*> +<enigmaiot_node_msgpack/>
[env:esp8266-NodeNonSleepy]
extends = esp8266_node_common
build_src_filter = -<*> +<enigmaiot_node_nonsleepy/>
[env:esp32-NodeNonSleepy]
extends = esp32_common
build_src_filter = -<*> +<enigmaiot_node_nonsleepy/>
[env:esp8266-ButtonController]
extends = esp8266_node_common
lib_deps =
${esp8266_common.lib_deps}
FailSafeMode
build_src_filter = -<*> +<EnigmaIOT-Button-Controller/>
[env:esp32-ButtonController]
extends = esp32_common
lib_deps =
${esp32_common.lib_deps}
FailSafeMode
build_src_filter = -<*> +<EnigmaIOT-Button-Controller/>
[env:esp8266-DashButtonController]
extends = esp8266_node_common
build_flags =
${esp32_common.build_flags}
-DFS_USE_FLASH=1
-DFS_USE_LITTLEFS=1
lib_deps =
${esp8266_common.lib_deps}
FailSafeMode
build_src_filter = -<*> +<EnigmaIOT-DashButton-Controller/>
[env:esp32-DashButtonController]
extends = esp32_common
lib_deps =
${esp32_common.lib_deps}
FailSafeMode
build_src_filter = -<*> +<EnigmaIOT-DashButton-Controller/>
[env:esp8266-JsonControllerTemplate]
extends = esp8266_node_common
lib_deps =
${esp8266_common.lib_deps}
FailSafeMode
build_src_filter = -<*> +<EnigmaIOT-Json-Controller-Template/>
build_flags = ${esp8266_common.build_flags} -DFS_USE_FLASH=1 -DFS_USE_LITTLEFS=1
[env:esp32-JsonControllerTemplate]
extends = esp32_common
lib_deps =
${esp32_common.lib_deps}
FailSafeMode
build_src_filter = -<*> +<EnigmaIOT-Json-Controller-Template/>
[env:esp8266-LedController]
extends = esp8266_node_common
lib_deps =
${esp8266_common.lib_deps}
FailSafeMode
build_src_filter = -<*> +<EnigmaIOT-Led-Controller/>
[env:esp32-LedController]
extends = esp32_common
lib_deps =
${esp32_common.lib_deps}
FailSafeMode
build_src_filter = -<*> +<EnigmaIOT-Led-Controller/>
[env:esp8266-SensorController]
extends = esp8266_node_common
build_src_filter = -<*> +<EnigmaIOT-Sensor-Controller/>
lib_deps =
${esp8266_node_common.lib_deps}
FailSafeMode
paulstoffregen/OneWire
milesburton/DallasTemperature
[env:esp32-SensorController]
extends = esp32_common
build_src_filter = -<*> +<EnigmaIOT-Sensor-Controller/>
lib_deps =
${esp32_common.lib_deps}
FailSafeMode
paulstoffregen/OneWire
milesburton/DallasTemperature
[env:esp8266-SmartSwitchController]
extends = esp8266_node_common
lib_deps =
${esp8266_common.lib_deps}
FailSafeMode
build_src_filter = -<*> +<EnigmaIOT-SmartSwitch-Controller/>
[env:esp32-SmartSwitchController]
extends = esp32_common
lib_deps =
${esp32_common.lib_deps}
FailSafeMode
build_src_filter = -<*> +<EnigmaIOT-SmartSwitch-Controller/>