[ai] tcp optimizations

This commit is contained in:
2025-11-08 23:08:49 +01:00
parent ea4461cc54
commit 34c499bd49
2 changed files with 69 additions and 143 deletions

View File

@@ -13,14 +13,14 @@ platform = https://github.com/pioarduino/platform-espressif32/releases/download/
board = wemos_d1_mini32
framework = arduino
lib_deps =
ESP32Async/ESPAsyncWebServer@3.7.10
ESP32Async/ESPAsyncWebServer@3.8.1
alanswx/ESPAsyncWiFiManager@0.31
miguelbalboa/MFRC522@^1.4.12
monitor_speed = 115200
build_flags =
-Os ; Optimize for size
; -DDEBUG ; Hannabox Debugging
; -DCORE_DEBUG_LEVEL=0 ; Disable all debug output
-DCORE_DEBUG_LEVEL=0 ; Disable all debug output
; -DARDUINO_LOOP_STACK_SIZE=4096 ; Balanced to avoid stack canary without starving heap
; -DWIFI_TASK_STACK_SIZE=3072 ; Reduce WiFi task stack
; -DARDUINO_EVENT_TASK_STACK_SIZE=2048 ; Reduce event task stack
@@ -29,7 +29,7 @@ build_flags =
; -DCONFIG_ASYNC_TCP_MAX_ACK_TIME=3000
; -DCONFIG_ASYNC_TCP_PRIORITY=10 ; (keep default)
; -DCONFIG_ASYNC_TCP_QUEUE_SIZE=64 ; (keep default)
; -DCONFIG_ASYNC_TCP_RUNNING_CORE=1 ; force async_tcp task to be on same core as Arduino app (default is any core)
-DCONFIG_ASYNC_TCP_RUNNING_CORE=1 ; force async_tcp task to be on same core as Arduino app (default is any core)
-DCONFIG_ASYNC_TCP_STACK_SIZE=4096 ; reduce AsyncTCP task stack (default can be large)
monitor_filters = esp32_exception_decoder
board_build.partitions = huge_app.csv