• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP 32 AP Mode

Q&A Forum › Category: ESP32 › ESP 32 AP Mode
0 Vote Up Vote Down
Rajesh Doshi asked 5 years ago

Hi, 
We are using ESP 32 in AP Mode. Code is as follows. 
WiFi.mode(WIFI_AP);
WiFi.softAP ( ssid, password);
WiFi.persistent(false);
WiFi.setSleepMode(WIFI_NONE_SLEEP);
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.
 

Question Tags: ESP32 : AP mode does not work with PC
7 Answers
-1 Vote Up Vote Down
Best Answer
Sara Santos Staff answered 5 years ago

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?
Regards,
Sara
 

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi.
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?
Regards,
Sara

0 Vote Up Vote Down
Rajesh Doshi answered 5 years ago

Hi,
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. 
Regards,
Rajesh Doshi
 
 

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi.
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.
Regards,
Sara

0 Vote Up Vote Down
Rajesh Doshi answered 5 years ago

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. 

0 Vote Up Vote Down
Rajesh Doshi answered 5 years ago

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. 
Thanks. 

0 Vote Up Vote Down
Rajesh Doshi answered 5 years ago

Hi, We checked with ESPAsyncWebserver library. However, the result is the same. ESP sends following line on serial port when there is an error.  dhcps: send_offer>>udp_sendto result 0 Does this give you any idea as what could the problem be? Regards,  Rajesh 

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.