WebSerial
WebSerial copied to clipboard
Bugfix WebSerial.h - wrong include with header file for ESP32, correct ESPAsyncWebSrv.h
OS environment:
- Linux Ubuntu 20.04.6
- Arduino IDE -- Version: 2.2.1 -- Date: 2023-08-31T14:16:33.536Z -- CLI Version: 0.34.0 -- Copyright © 2024 Arduino SA
Hardware:
- ESP32-WROOM32
- USB cable
In simple usage of typical WiFI + Web server application, when I added WebSerial library in 1.4.0 version from internal Arduino IDE repositories, I can not compile. Error message:
In file included from /home/USER/Arduino/ESP32_WiFi_Connect_TestSimple/ESP32_WiFi_Connect_TestSimple.ino:14:
/home/USER/Arduino/libraries/WebSerial/src/WebSerial.h:17:14: fatal error: ESPAsyncWebServer.h: No such file or directory
#include "ESPAsyncWebServer.h"
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: exit status 1
Reason: Wrong #include "ESPAsyncWebServer.h" line. Correct one is #include "ESPAsyncWebSrv.h"
The solution is in this pull request.
I think you might not use the right dependency. I am using this project with esphome/ESPAsyncWebServer and it works
This PR is marked as stale because it has been open 45 days with no activity. You can remove stale label or comment if this PR is still valid.