Files
RTC_BL_PHONE/platformio.ini
T
Clément SAILLANT d2befa2c8d feat: Refactor WebServerManager and remove unused web UI files
- Deleted WebServerManager.h and WebServerManager.cpp files to streamline the codebase.
- Updated WebServerManager.cpp to improve authentication handling and command validation.
- Added command validator functionality to WebServerManager.
- Removed old web UI files (index.html, script.js, style.css) as they are no longer needed.
- Modified WifiManager to open fallback AP by default to avoid lockout.
- Introduced a pre-merge script for automated checks and builds.
- Added runtime contract tests for firmware API guards to ensure robustness.
2026-02-25 10:58:48 +01:00

147 lines
4.0 KiB
INI

; PlatformIO Project Configuration File
[platformio]
default_envs = esp32-s3-devkitc-1
build_dir = .pio/build_live
[env]
platform = espressif32
framework = arduino
monitor_speed = 115200
test_build_src = yes
build_flags =
-DCORE_DEBUG_LEVEL=1
lib_deps =
bblanchon/ArduinoJson@^7.0.4
throwtheswitch/Unity@^2.6.1
ESP32Async/AsyncTCP@^3.3.2
ESP32Async/ESPAsyncWebServer@^3.6.0
https://github.com/pschatzmann/arduino-audio-tools.git
https://github.com/bitluni/OsciDisplay.git
knolleary/PubSubClient@^2.8
lib_ignore =
ESPAsyncTCP
RPAsyncTCP
[env:esp32dev]
board = esp32dev
board_build.partitions = huge_app.csv
upload_port = /dev/cu.usbserial
monitor_port = /dev/cu.usbserial
build_flags =
${env.build_flags}
-DBOARD_PROFILE_A252
build_src_filter =
+<main.cpp>
+<audio/AudioEngine.cpp>
+<audio/Es8388Driver.cpp>
+<config/A252ConfigStore.cpp>
+<core/CommandDispatcher.cpp>
+<core/AgentSupervisor.cpp>
+<core/PlatformProfile.cpp>
+<props/EspNowBridge.cpp>
+<wifi/WifiManager.cpp>
+<visual/ScopeDisplay.cpp>
+<slic/Ks0835SlicController.cpp>
+<telephony/DtmfDecoder.cpp>
+<telephony/TelephonyService.cpp>
+<props/PropsBridge.cpp>
+<web/WebServerManager.cpp>
[env:test]
platform = espressif32
board = esp32dev
framework = arduino
test_build_src = yes
lib_deps =
bblanchon/ArduinoJson@^7.0.4
ESP32Async/AsyncTCP@^3.3.2
ESP32Async/ESPAsyncWebServer@^3.6.0
throwtheswitch/Unity@^2.6.1
knolleary/PubSubClient@^2.8
https://github.com/luisllamasbinaburo/Arduino-List.git#master
https://github.com/pschatzmann/arduino-audio-tools.git
[env:esp32-s3-devkitc-1]
board = esp32-s3-devkitc-1
board_build.partitions = partitions/esp32s3_no_ota_spiffs_16MB.csv
upload_port = /dev/cu.usbserial
monitor_port = /dev/cu.usbserial
build_flags =
${env.build_flags}
-DBOARD_PROFILE_ESP32_S3
build_src_filter =
+<main.cpp>
+<audio/AudioEngine.cpp>
+<audio/Es8388Driver.cpp>
+<config/A252ConfigStore.cpp>
+<core/CommandDispatcher.cpp>
+<core/AgentSupervisor.cpp>
+<core/PlatformProfile.cpp>
+<props/EspNowBridge.cpp>
+<wifi/WifiManager.cpp>
+<visual/ScopeDisplay.cpp>
+<slic/Ks0835SlicController.cpp>
+<telephony/DtmfDecoder.cpp>
+<telephony/TelephonyService.cpp>
+<props/PropsBridge.cpp>
+<web/WebServerManager.cpp>
[env:esp32-s3-usb-host]
board = esp32s3usbotg
board_build.partitions = partitions/esp32s3_no_ota_spiffs_16MB.csv
upload_port = /dev/cu.usbserial
monitor_port = /dev/cu.usbserial
build_flags =
${env.build_flags}
-DBOARD_PROFILE_ESP32_S3
-DUSB_HOST_BOOT_ENABLE
build_src_filter =
+<main.cpp>
+<audio/AudioEngine.cpp>
+<audio/Es8388Driver.cpp>
+<config/A252ConfigStore.cpp>
+<core/CommandDispatcher.cpp>
+<core/AgentSupervisor.cpp>
+<core/PlatformProfile.cpp>
+<props/EspNowBridge.cpp>
+<wifi/WifiManager.cpp>
+<visual/ScopeDisplay.cpp>
+<slic/Ks0835SlicController.cpp>
+<telephony/DtmfDecoder.cpp>
+<telephony/TelephonyService.cpp>
+<props/PropsBridge.cpp>
+<web/WebServerManager.cpp>
[env:esp32-s3-usb-msc]
board = esp32-s3-devkitc-1
board_build.partitions = partitions/esp32s3_no_ota_spiffs_usb_msc_16MB.csv
extra_scripts = scripts/upload_usbmsc.py
upload_port = /dev/cu.usbserial
monitor_port = /dev/cu.usbserial
build_unflags =
-DARDUINO_USB_MODE=1
build_flags =
${env.build_flags}
-DBOARD_PROFILE_ESP32_S3
-DARDUINO_USB_MODE=0
-DUSB_MSC_BOOT_ENABLE
build_src_filter =
+<main.cpp>
+<usb/UsbMassStorageRuntime.cpp>
+<audio/AudioEngine.cpp>
+<audio/Es8388Driver.cpp>
+<config/A252ConfigStore.cpp>
+<core/CommandDispatcher.cpp>
+<core/AgentSupervisor.cpp>
+<core/PlatformProfile.cpp>
+<props/EspNowBridge.cpp>
+<wifi/WifiManager.cpp>
+<visual/ScopeDisplay.cpp>
+<slic/Ks0835SlicController.cpp>
+<telephony/DtmfDecoder.cpp>
+<telephony/TelephonyService.cpp>
+<props/PropsBridge.cpp>
+<web/WebServerManager.cpp>