Closed we-do-it-lu closed 2 years ago
Have a look at Async_ESP32_FSWebServer_DRD example and see how to create and use AsyncWebServer in very similar case.
This ESPAsync_WiFiManager_Lite instance is short-lived and is dead after fulfilling its job, which has no intended purpose to serve any other data besides the Config Portal.
Even I'm glad to see your interest in this library, I'm afraid I won't spend time to help you out, if your problem persists.
Try to study the above-mentioned example
Thank you, what you shared helped me understand better how this works and I managed to achieve what I wanted to do.
I discovered this ‘ESPAsync_WiFiManager_Lite’ project today, I find it great; It really makes it easy connecting to WiFi in Configuration Portal Mode. What I don’t understand is: Once my ESP32 is effectively connected to my WiFi I want it to do “something”, specifically I want it to reply to GET requests to return whatever data If this makes sense… Another way to put it is once the WiFi is connected I want the module to serve AsyncWebServer on port 80 (else what the point of getting connected to the network if it’s not to serve data?) I could I go about this? I tried :
AsyncWebServer server(80);
then
But it does not work this way I think, I am confused with the various libraries. A little help would be great. Thank you very much in advance.