I have already installed the library but still can't run the ESPAsyncWebServer library even though I have updated the latest arduino ide and installed
Hi @tanmisses. The "ESPAsyncWebSrv" library available from the Arduino IDE Library Manager is a fork of the original "ESPAsyncWebServer" library (which is not available for installation via Library Manager). The API of the fork should be compatible with the parent library, but the fork author did rename the primary header file.
So you must change this line of your sketch:
#include <ESPAsyncWebServer.h>
to this:
#include <ESPAsyncWebSrv.h>
After making that change, try compiling or uploading the sketch again. Hopefully it will be successful this time.
thanks broooooooooo
You are welcome. I'm glad if I was able to be of assistance.
Regards,
Per
Hi i am also facing the same problem where it says that ESPAsyncWebServer.h cannot be found. unfortunately even though i have changed the library name to #include <ESPAsyncWebSrv.h> as well as adding #include <AsyncTCP.h>. i still get this error. i have downloaded the libraries shown in the pictures and also for your information i am using esp32.
Edit: if anyone is facing a similar issue to mine try adding the #include<ArduinoJson.h> library, turns out ESP-DASH library has some files missing among it but adding ArduinoJson can add these missing files
Ran into this one as well. Even though I has updated my .ino to
#include <ESPAsyncWebSrv.h>
I was still getting errors for ESPAsyncWebServer.h missing. I had to go into my library folder and update ESPDash.h in libraries/ESP-DASH/src and change the include there as well.
Hello. I ran into this error as well. Changing the suggested line on the sketch didn't help either
Hi @maxbots. I'm going to ask you to post the full output from a compilation.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
- Select Sketch > Verify/Compile from the Arduino IDE menus.
- Wait for the compilation to fail.
- You will see a "Compilation error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
- Open a forum reply here by clicking the "Reply" button.
- Click the
<CODE/>
icon on the post composer toolbar.
This will add the forum's code block markup (```
) to your reply to make sure the error messages are correctly formatted.
- Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
This will paste the compilation output into the code block. - Move the cursor outside of the code block markup before you add any additional text to your reply.
- Click the "Reply" button to post the output.
In case the output is longer than the forum software will allow to be added to a post, you can instead save it to a .txt
file and then attach that file to a reply here:
- Open any text editor program.
- Paste the copied output into the text editor.
- Save the file in
.txt
format. - Open a forum reply here by clicking the "Reply" button.
- Click the "Upload" icon (
) on the post composer toolbar:
The "Open" dialog will open. - Select the
.txt
file you saved from the "Open" dialog. - Click the "Open" button.
The dialog will close. - Click the "Reply" button to publish the post.
Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .txt
file onto the post composer field to attach it.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.