s00500 / ESPUI

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

ElegantOTA and ESPUI #280

Closed aiotech-pub closed 3 months ago

aiotech-pub commented 10 months ago

I have just written a test application using ESPUI and ElegantOTA together but using 2 different web servers, one running on port 80 and the other on port 8080. In my understanding ElegantOTA does not start the web server, instead it uses a web server used by the application and already running. So. it would be very useful a method on ESPUI class returning a pointer to the web server instance already started. I am quite sure it would work

hagre commented 5 months ago

I have found a nice working "example" for your problem: https://github.com/AOG-addendum/Dual-GPS To test, initialy you have to acticate OTA in the GUI and reboot to use it

Tuet commented 4 months ago

This is the trick that works for me, just add the following in setup: ElegantOTA.begin(ESPUI.server); // Start ElegantOTA

MartinMueller2003 commented 3 months ago

This is the trick that works for me, just add the following in setup: ElegantOTA.begin(ESPUI.server); // Start ElegantOTA

This is the intended and correct way to do this.

aiotech-pub commented 3 months ago

Ok, that's OK also for me, thanks guys.