Skip to content

Commit 7a52144

Browse files
authored
Merge pull request wled#4834 from willmmiles/0_15_x_wsonly
0.15 - updated AsyncWebServer and AsyncTCP
2 parents 0ecae7e + 9c82add commit 7a52144

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

platformio.ini

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ lib_deps =
140140
IRremoteESP8266 @ 2.8.2
141141
makuna/NeoPixelBus @ 2.8.3
142142
#https://github.com/makuna/NeoPixelBus.git#CoreShaderBeta
143-
https://github.com/Aircoookie/ESPAsyncWebServer.git#v2.2.1
143+
https://github.com/Aircoookie/ESPAsyncWebServer.git#v2.4.2
144144
# for I2C interface
145145
;Wire
146146
# ESP-NOW library
@@ -248,6 +248,7 @@ build_flags = -g
248248
-DARDUINO_ARCH_ESP32
249249
#-DCONFIG_LITTLEFS_FOR_IDF_3_2
250250
-D CONFIG_ASYNC_TCP_USE_WDT=0
251+
-D CONFIG_ASYNC_TCP_STACK_SIZE=8192
251252
#use LITTLEFS library by lorol in ESP32 core 1.x.x instead of built-in in 2.x.x
252253
-D LOROL_LITTLEFS
253254
; -DARDUINO_USB_CDC_ON_BOOT=0 ;; this flag is mandatory for "classic ESP32" when building with arduino-esp32 >=2.0.3
@@ -259,7 +260,7 @@ large_partitions = tools/WLED_ESP32_8MB.csv
259260
extreme_partitions = tools/WLED_ESP32_16MB_9MB_FS.csv
260261
lib_deps =
261262
https://github.com/lorol/LITTLEFS.git
262-
https://github.com/pbolduc/AsyncTCP.git @ 1.2.0
263+
esp32async/AsyncTCP @ 3.4.7
263264
${env.lib_deps}
264265
# additional build flags for audioreactive
265266
AR_build_flags = -D USERMOD_AUDIOREACTIVE
@@ -280,10 +281,11 @@ build_flags = -g
280281
-Wshadow=compatible-local ;; emit warning in case a local variable "shadows" another local one
281282
-DARDUINO_ARCH_ESP32 -DESP32
282283
-D CONFIG_ASYNC_TCP_USE_WDT=0
284+
-D CONFIG_ASYNC_TCP_STACK_SIZE=8192
283285
-DARDUINO_USB_CDC_ON_BOOT=0 ;; this flag is mandatory for "classic ESP32" when building with arduino-esp32 >=2.0.3
284286
-D WLED_ENABLE_DMX_INPUT
285287
lib_deps =
286-
https://github.com/pbolduc/AsyncTCP.git @ 1.2.0
288+
esp32async/AsyncTCP @ 3.4.7
287289
https://github.com/someweisguy/esp_dmx.git#47db25d
288290
${env.lib_deps}
289291
board_build.partitions = ${esp32.default_partitions} ;; default partioning for 4MB Flash - can be overridden in build envs
@@ -298,13 +300,14 @@ build_flags = -g
298300
-DARDUINO_ARCH_ESP32S2
299301
-DCONFIG_IDF_TARGET_ESP32S2=1
300302
-D CONFIG_ASYNC_TCP_USE_WDT=0
303+
-D CONFIG_ASYNC_TCP_STACK_SIZE=8192
301304
-DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=0
302305
-DCO
303306
-DARDUINO_USB_MODE=0 ;; this flag is mandatory for ESP32-S2 !
304307
;; please make sure that the following flags are properly set (to 0 or 1) by your board.json, or included in your custom platformio_override.ini entry:
305308
;; ARDUINO_USB_CDC_ON_BOOT
306309
lib_deps =
307-
https://github.com/pbolduc/AsyncTCP.git @ 1.2.0
310+
esp32async/AsyncTCP @ 3.4.7
308311
${env.lib_deps}
309312
board_build.partitions = ${esp32.default_partitions} ;; default partioning for 4MB Flash - can be overridden in build envs
310313

@@ -318,12 +321,13 @@ build_flags = -g
318321
-DARDUINO_ARCH_ESP32C3
319322
-DCONFIG_IDF_TARGET_ESP32C3=1
320323
-D CONFIG_ASYNC_TCP_USE_WDT=0
324+
-D CONFIG_ASYNC_TCP_STACK_SIZE=8192
321325
-DCO
322326
-DARDUINO_USB_MODE=1 ;; this flag is mandatory for ESP32-C3
323327
;; please make sure that the following flags are properly set (to 0 or 1) by your board.json, or included in your custom platformio_override.ini entry:
324328
;; ARDUINO_USB_CDC_ON_BOOT
325329
lib_deps =
326-
https://github.com/pbolduc/AsyncTCP.git @ 1.2.0
330+
esp32async/AsyncTCP @ 3.4.7
327331
${env.lib_deps}
328332
board_build.partitions = ${esp32.default_partitions} ;; default partioning for 4MB Flash - can be overridden in build envs
329333

@@ -338,12 +342,13 @@ build_flags = -g
338342
-DARDUINO_ARCH_ESP32S3
339343
-DCONFIG_IDF_TARGET_ESP32S3=1
340344
-D CONFIG_ASYNC_TCP_USE_WDT=0
345+
-D CONFIG_ASYNC_TCP_STACK_SIZE=8192
341346
-DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_DFU_ON_BOOT=0
342347
-DCO
343348
;; please make sure that the following flags are properly set (to 0 or 1) by your board.json, or included in your custom platformio_override.ini entry:
344349
;; ARDUINO_USB_MODE, ARDUINO_USB_CDC_ON_BOOT
345350
lib_deps =
346-
https://github.com/pbolduc/AsyncTCP.git @ 1.2.0
351+
esp32async/AsyncTCP @ 3.4.7
347352
${env.lib_deps}
348353
board_build.partitions = ${esp32.large_partitions} ;; default partioning for 8MB flash - can be overridden in build envs
349354

@@ -644,6 +649,7 @@ build_flags = ${common.build_flags} ${esp32s2.build_flags} -D WLED_RELEASE_NAME=
644649
-DLOLIN_WIFI_FIX ; seems to work much better with this
645650
-D WLED_WATCHDOG_TIMEOUT=0
646651
-D CONFIG_ASYNC_TCP_USE_WDT=0
652+
-D CONFIG_ASYNC_TCP_STACK_SIZE=8192
647653
-D DATA_PINS=16
648654
-D HW_PIN_SCL=35
649655
-D HW_PIN_SDA=33

0 commit comments

Comments
 (0)