Replies: 6 comments 1 reply
-
I think you should ask the lib author ;-) |
Beta Was this translation helpful? Give feedback.
-
Yes, and I have posted on the WiFiManager library issues as well. But as mentioned, and I'm sorry if that wasn't clear, considering the problem seems to be with the filter function in the ESPAsyncWebserver library, I wanted to ask here. If this isn't the appropriate place to discuss possible issues with the |
Beta Was this translation helpful? Give feedback.
-
The filtre implémentation is just an example on how to use filter. Up to library users to correctly set their implementation based on what they do. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the clarification! I'll investigate further. |
Beta Was this translation helpful? Give feedback.
-
Hello, So I'm afraid I'm still a bit confused. The https://github.com/ESP32Async/ESPAsyncWebServer/blob/main/examples/CaptivePortal/CaptivePortal.ino These filters work as expected on an ESP32E and an ESP32-S3, but they don't work on an ESP32C3, I haven't had time to do much testing, but it seems the problem is with the line If I replace this line from the example: server.addHandler(new CaptiveRequestHandler()).setFilter(ON_AP_FILTER); with this version that is identical to the server.addHandler(new CaptiveRequestHandler()).setFilter([this](AsyncWebServerRequest *request)->bool{
return WiFi.localIP() != request->client()->localIP();
}); I'm sorry if I'm missing something, but other libraries, like PsychicHttp also implement the |
Beta Was this translation helpful? Give feedback.
-
Aah, that makes sense! Thanks for explaining :-) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
When using the ESP32C3 and the ESPAsyncWiFiManager library, I ran into some strange issues. I traced the problem to the ON_AP_FILTER function, which seemed to incorrectly find that the ESP32C3 wasn't in AP mode, and filtered out all requests no matter what.
I'm not sure if there's something wrong with the
ON_AP_FILTER
function running on the C3 or the implementation in ESPAsyncWiFiManager, but any insight would be appreciated.Thank you!
Beta Was this translation helpful? Give feedback.
All reactions