We are using ESP 32 in AP Mode. Code is as follows.
WiFi.softAP ( ssid, password);
It is observed that, when I am using an Android or iOS phone, it is able to connect to WiFi and web pages etc are working fine. There is no problem.
But if I try it from Windows 7 or Windows 10 PC, it works only once as soon as the ESP32 is flashed. After that, whichever PC I try, it takes lot of time to connect to WiFi. In WiFi connectivity it shows Limited Access (This is a message apart from No Internet Access) and if I try to open a web page, it Browser (I tried Chrome, Opera, Firefox) gives an error as
This site can’t be reached
192.168.4.1 took too long to respond.
We use the ESPAsyncWebServer library mostly, not the WebServer.h library.
However, we’ve never faced that issue when using the ESP in acces point.
Have you considered using the ESP as a station instead?
Unfortunately, I have no idea of what might be causing the issue.
It may depend on the code you’re running on your board.
Does it allow more than one client to connect at the same time?
What’s the ESP32 board that you are using?
Thanks for your reply. We tried it on ESP32-Wroom-32 module and ESP32-Wroom-32D ready to use module. On both the results are the same.
We are using Aurdino IDE. Tried on both V2.5 and latest 2.7.
Using webserver.h and WiFi.h libraries.
If I am using Mobile, then I can connect more than one client. It gives problem with Windows PC.
That’s a very strange behavior.
Unfortunately, I have no idea why that happens.
I found this discussion about the same issue, but I couldn’t find any answer: https://github.com/espressif/arduino-esp32/issues/2910
I’m sorry that I can’t help much.
The only thing I can recommend is to update your boards in arduino IDE and all the libraries you’re using.
So I assume, you guys have never faced any problem with ESP32 server when you access them from Windows browser, when ESP32 is in AP mode.
Like you said, I too found discussions in github, but no solution.
Please let me know in case you come across such behaviour and solution.
Yes, it works well if it is used in Station mode. However, it is not necessary that we will have external wifi available. So we need to use device in AP mode.
I am trying with ESPAsyncWebServer library. Let me check if it works with it.