Skip to content

Commit

Permalink
Arduino 3 / ESP-IDF 5 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed Apr 21, 2024
1 parent d4f6bcd commit bb42b53
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: arduino-cli config set library.enable_unsafe_install true

- name: Install test dependencies
run: arduino-cli lib install --git-url https://github.com/me-no-dev/ESPAsyncWebServer --git-url https://github.com/me-no-dev/ESPAsyncTCP --git-url https://github.com/me-no-dev/AsyncTCP
run: arduino-cli lib install --git-url https://github.com/mathieucarbou/ESPAsyncWebServer --git-url https://github.com/esphome/ESPAsyncTCP --git-url https://github.com/mathieucarbou/AsyncTCP

- name: Skip SyncDemo Example
run: |
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ node_modules
.DS_Store
.vscode
/build
/portal
/portal
.pio
49 changes: 49 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[env]
framework = arduino
build_flags =
-Wall -Wextra
-D CONFIG_ARDUHAL_LOG_COLORS
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
-D ELEGANTOTA_USE_ASYNC_WEBSERVER=1
lib_deps =
bblanchon/ArduinoJson @ 7.0.4
mathieucarbou/Async TCP @ ^3.0.2
mathieucarbou/ESP Async WebServer @ 2.9.3
upload_protocol = esptool
monitor_speed = 115200
monitor_filters = esp32_exception_decoder, log2file

[platformio]
lib_dir = .
# src_dir = examples/Demo
src_dir = examples/AsyncDemo

[env:v660]
platform = [email protected]
board = esp32dev

[env:latest-espressif32]
platform = https://github.com/platformio/platform-espressif32.git
board = esp32dev

[env:latest-arduino]
platform = espressif32
platform_packages=
platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#master
platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/esp32-arduino-libs.git#idf-release/v5.1
board = esp32dev

[env:v300-rc1]
platform = espressif32
platform_packages=
platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.0-rc1
platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/esp32-arduino-libs.git#idf-release/v5.1
board = esp32dev

[env:esp8266]
platform = espressif8266
board = huzzah
lib_deps =
bblanchon/ArduinoJson @ 7.0.4
mathieucarbou/ESP Async WebServer @ 2.9.3
esphome/ESPAsyncTCP-esphome @ 2.0.0

0 comments on commit bb42b53

Please sign in to comment.