ESPAsyncWebServer.h with esp32

I am new to esp32 programming. I wanted to try to make a server.

I tried to use the ESPAsyncWebServer library.

I got this error

In file included from C:\Users\User\Documents\Arduino\server\server.ino:2:0:
Multiple libraries were found for "WiFi.h"
sketch\ESPAsyncWebServer.h:33:22: fatal error: AsyncTCP.h: No such file or directory
Used: C:\Users\User\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
compilation terminated.
Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\libraries\WiFi
exit status 1
Error compiling for board ESP32 Wrover Module.

Can someone help me and tell me what is the correct way to install liberals because I have a feeling that I am doing it wrong.

1

2 Answers

Your compile error says that you are lacking the AsyncTCP library. You can find it here:

You will need to install both libraries ESPAsyncTCP and ESPAsyncWebServer, since the latter is dependant on the first.

You can install them by:

  1. Downloading the zip files from github:

  2. In your Arduino IDE go to Sketch > Include Library > ZIP-Library and select the libraries you just downloaded.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like