-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Using both WebServer.h and esp_http_server.h at the same time??? #1184
Comments
Not sure what that is there are a few options WM does not allow passing in an httpd yet, but ours is a shared pointer so you can use it in your own code. You can run it on alternate ports, you cannot close and restart same port ( there is a bug in esp with port binding it seems ) I have an experimental async webserver branch also |
Very interesting -- I think that "port binding" bug was my problem. So for the record here is my solution:
I haven't tried it away from my wifi yet. I assume it will fail to connect, then start the server to get the ssid, which will also fail, and then all the non-wifi aspects of my program will start running normally. https://github.com/jameszah/ESP32-CAM-Video-Recorder-junior
|
Hi, quick question about using this on ESP32 with Arduino IDE and with an http server already running in my code:
Has anyone tried to use this library which includes the WebServer.h server object, and at the same time use direct server code with esp_http_server.h software. The two packages fight over who controls symbols (like HTTP_GET) during the compile, and after solving that, then the WebServer.h object and my own object created with esp_http_server.h fight over who controls the events -- and only one can get the events.
I have a work-around to do the WiFiManager stuff, and then close the object, and then start a new server with all my own http server stuff.
I think the solution would be to re-do this library without the WebServer.h object, and directly grab the http events, and include WiFiManger events in the mix of other http events that my program already handles.
So just looking for a little advice if anyone has faced this issue?
I was using the esp_http_server.h calls, such as:
While WebServer.h calls such as:
The text was updated successfully, but these errors were encountered: