0

I'm using this ESP32AsyncDNSServer library on my ESP32 application. Suddenly (I'm not sure what I did) it does not compile anymore:

.pio/libdeps/Aphrodite/ESPAsyncDNSServer/src/ESPAsyncDNSServer.h:8:10: fatal error: AsyncUDP.h: No such file or directory

Here the related code of the library:

#ifdef ARDUINO_ARCH_ESP32 
#ifndef Stream_h
#include <Stream.h>
#endif
#include <AsyncUDP.h>
#else
#include <ESPAsyncUDP.h>
#endif

but of course AsyncUDP.h does exist:

/home/mark/.platformio/packages/framework-arduinoespressif32/libraries/AsyncUDP/src/AsyncUDP.h

What could prevent the compiler to find it?

asked Dec 8, 2023 at 10:39
0

1 Answer 1

2

for whatever reason, adding this to your platformio.ini env section helps:

[env]
lib_compat_mode = strict # default is "soft"

I guess the more clean version would be to add this to your lib_deps

lib_deps = 
 ESP32 Async UDP # important! otherwise "AsyncUDP.h" blabla is missing..
 <your libs following>
answered Feb 23, 2024 at 11:42

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.