What is the proper way to use this alongside a previous webserver already running on port 80? #90
-
Hello. If I already have a AsyncWebServer running on port 80, and I'd like to use this library to open a AP for wifi config on loss of wifi signal, what is the recommended way to run Normally I would provide my previous server as the input to the constructor here, but I have found that I can comment out all instances of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Nevermind, just simply calling .end() on my own server and letting this library do its thing, then calling .end() on this library's server and .begin() on my own after startConfigPortal finishes resolves my issue. I did not originally realize that I needed to .end() the server supplied to the library since it only resets the server but does not end it when it is done, which causes a conflict on port 80. |
Beta Was this translation helpful? Give feedback.
Nevermind, just simply calling .end() on my own server and letting this library do its thing, then calling .end() on this library's server and .begin() on my own after startConfigPortal finishes resolves my issue. I did not originally realize that I needed to .end() the server supplied to the library since it only resets the server but does not end it when it is done, which causes a conflict on port 80.