s00500 / ESPUI

A simple web user interface library for ESP32 and ESP8266
https://valencia.lbsfilm.at/midterm-presentation/
Other
896 stars 166 forks source link

Using the AsyncTCP.h ESPAsyncWebServer.h to enable parallel use of WebSerial #284

Closed StefanL38 closed 8 months ago

StefanL38 commented 8 months ago

Hi s00500,

your library is fantastic. Especially since autoupdating all clients work.

I tried to combine ESPUI with WebSerial from Ayush https://github.com/ayushsharma82/WebSerial but driving your

dnsServer.start(DNS_PORT, "*", apIP); in parallel with AsyncWebServer server(80); WebSerial.begin(&server); Does not work. It seems logic to me that it does not work in parallel This is the reason why I am asking how to modify your code to use the AsyncWebServer

best regards Stefan

thomastech commented 8 months ago

FYI, Port 80 is used by ESPUI's webserver port. So I suggest changing your Async port number to prevent conflicts.

MartinMueller2003 commented 8 months ago

I got him sorted. The real issue is that he was starting TWO web servers when only one was needed. I had to expose the ESPUI web server to external code and that allowed Stefan to bind his Serial server to the ESPUI web server using a single port.