ayushsharma82 / WebSerial

A remote terminal library for wireless microcontrollers to log, monitor or debug your firmware/product
https://webserial.pro
GNU Affero General Public License v3.0
461 stars 107 forks source link

Bugfix WebSerial.h - wrong include with header file for ESP32, correct ESPAsyncWebSrv.h #69

Closed bieli closed 1 week ago

bieli commented 5 months ago

OS environment:

Hardware:

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.

mathieucarbou commented 5 months ago

I think you might not use the right dependency. I am using this project with esphome/ESPAsyncWebServer and it works

github-actions[bot] commented 3 weeks ago

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.