AsyncTCP_RP2040W library issues

Hello to everyone, this is my first post/question so sorry if something is not in the right format, so here i go:

I’m trying to move an Arduino project to Platformio.
I’m including the libraries below on my code as follows:

#include <AsyncTCP.h>
#include <ESPAsyncWebServer.h>

These are placed in the default “lib” folder.

Coordinates are:
mathieucarbou/AsyncTCP @ ^3.2.4
mathieucarbou/ESPAsyncWebServer@^3.1.5

My platform.ini file is as follows:

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200

[platformio]
src_dir = .
include_dir = include

When compiling I get lot of errors/warnings on a library called AsyncTCP_RP2040W.h that I never include on the project, it appears in “…pio/libdeps/esp32dev/AsyncTCP_RP2040W/src”

For sure this is my lack of experience with platformio, i will appreciate if somebody can help.

Best regards

Juan

Why? That’s what the registry is for!
Please remove the files from the lib folder!

Use the lib_deps and change your platformio.ini to:

[env:esp32dev]
platform = espressif32 @ 6.8.1
board = esp32dev
framework = arduino
monitor_speed = 115200

lib_deps = 
  mathieucarbou/ESPAsyncWebServer@^3.1.5

Since mathieucarbou/ESPAsyncWebServer depends on mathieucarbou/AsyncTCP, the latter is installed automatically.

Hello, thanks for the answer.
That fixed the issue.
Best regards

Juan

1 Like