• 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

Web Server – Module 4 Unit 2.

Q&A Forum › Category: ESP32 › Web Server – Module 4 Unit 2.
0 Vote Up Vote Down
Robert Gillespie asked 4 years ago

Correct ssid and password but will not connect to wifi. Any suggestions?  I am connected to ESP32 because I can change the leds to on and off and recompile.  The leds work.  Then it begins to try to connect with the wifi.  I have the ssid and the password but the ESP32 simply tries to keep connecting after telling me it is trying by the “.” that it keeps printing. Any suggestions?

Question Tags: Wifi won't connect to ESP32.
14 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
I’m sorry but I didn’t understand your issue.
How can you control the LEDs if it doesn’t connect to Wi-Fi? Can you better explain your problem?
Regards,
Sara

0 Vote Up Vote Down
Steve Mercer answered 4 years ago

I would guess that Robert can connect to the ESP32 via USB and program it to change the LED’s. The issue is connecting to his WiFi router.
 
The most likely culprit is that your board is too far away from your router. The built-in antenna on these boards are extremely short range (In my case about 10 feet). I added an external antenna to one of my boards and that increased the range significantly.

0 Vote Up Vote Down
Robert Gillespie answered 4 years ago

Steve, you have it right.  I connect via USB, change program to turn LEDs on immediately and recompile and upload.  I will try moving closer to router.  Thanks.
Bob

0 Vote Up Vote Down
Robert Gillespie answered 4 years ago

I have moved the router to about 6 feet away with no success.  I thought that maybe I had the password wrong so I deleted the wifi account from my iPad and put it in again and it was successful.  I don’t have a clue what is going wrong.  I’m using AT&T fiber and running a lot in the house and wonder if that could be the problem?  Any more thoughts on what I might try?  I have a laptop and I might try using it.  I have the wifi set on Private.  I’ve taken down the firewall for this effort.  The computer I’m using is connected via wifi to the network.  Hope this helps a bit.  

0 Vote Up Vote Down
Robert Gillespie answered 4 years ago

This is not answered.  I moved the ESP32 to within a foot of the router and it just still trys to connect without success.  One other input is the the communication system is WPS.  Please try to help.

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

Hi.
Is this the first web server you are trying to run with the ESP32? Or have you tried other examples?
Can you test this code and see if it works? https://github.com/RuiSantosdotme/build-web-servers-ebook/blob/main/Module_3_Web_Servers/1_Hello_World/1_1_Hello_World_WS/src/main.cpp
Just insert your network credentials and it should work.
It builds a web server using a different approach. It simply displays “hello World”. But, it is just to make sure that the problem is not related with the code.
Regards,
Sara

0 Vote Up Vote Down
Robert Gillespie answered 4 years ago

Hi Sara:
I hate to be a pest but I want to get this right.  I loaded the code you suggested and tried to run it.  I immediately get a
AsyncTCP.h No such file or directory.  I go to manage libraries and that library is not available to me.  Can you help me get it?
 
Bob

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

Hi.
I’m sorry. I forgot to mention that you need to install these libraries:

  • ESPAsyncWebServer
  • AsyncTCP

Click the links to download the libraries. Then, in your Arduino IDE, go to Sketch > Include Library > Add ZIP library and select the libraries.
Regards,
Sara

0 Vote Up Vote Down
Robert Gillespie answered 4 years ago

Hi Sara:
The libraries seemed to work as the sketch compiled, uploaded and then gave me the “brownout detector was triggered” notice.  Is there any fix for this when I have to get the IP address later so I must be tied to computer?
Bob

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

Hi again.
If the ESP32 successfully initializes wi-fi, it will show up on the router settings page (usually there is a label in your router with an IP that you can access to see the router dashboard settings).
Can you tell me what is the ESP32 model that you have?
Do you have another one to experiment with? Do you have any components connected to the ESP32 (sensors, LEDS, etc)?
Regards,
Sara

0 Vote Up Vote Down
Robert Gillespie answered 4 years ago

The ESP32 model is the DOIT ESP32 DEVKIT V1.  I have two ESP32s.  I think I destroyed one trying to get this webserver to work.  The tiny LED onboard no longer flashes.  On the other ESP32, I get the brownout triggered alert and nothing happens.  I was, using your advice, able to see what is attached to my router but I can’t identify all of the connections.  There are two that say off that I cannot identify.  Sara, I’m beginning to think that it is not going to work for me.  If you agree let me know. I can order another ESP32.
Bob

Device IP Address / Name
Status
Connection
Frequency, Type, Name
Mesh Client

iPad
off
Wi-Fi
5 GHz, Home, ATTSTzKhCI
No

EPSON113166
off
Wi-Fi
2.4 GHz, Home, ATTSTzKhCI
No

192.168.1.65 / ATT-TV-X71EC0BM002743
on
Wi-Fi   Wi-Fi 4 bars
5 GHz, Home, ATTSTzKhCI
No

192.168.1.66 / iPad
on
Wi-Fi   Wi-Fi 3 bars
5 GHz, Home, ATTSTzKhCI
No

192.168.1.67 / DESKTOP-H2C5GS8
on
Wi-Fi   Wi-Fi 5 bars
2.4 GHz, Home, ATTSTzKhCI
No

192.168.1.69 / Bob-PC
on
Wi-Fi   Wi-Fi 5 bars
5 GHz, Home, ATTSTzKhCI
No

192.168.1.71 / SAMSUNG-SM-J320A
on
Wi-Fi   Wi-Fi 5 bars
2.4 GHz, Home, ATTSTzKhCI
No

192.168.1.72 / Chromecast
off
Wi-Fi
5 GHz, Home, ATTSTzKhCI
No

192.168.1.73 / unknown84a466bfddce
off
Wi-Fi
2.4 GHz, Home, ATTSTzKhCI
No

192.168.1.75 / android-cb3aaf91e2e70ad2
on
Wi-Fi   Wi-Fi 4 bars
2.4 GHz, Home, ATTSTzKhCI
No

192.168.1.76 / unknown20f85e1d9a81
on
Wi-Fi   Wi-Fi 3 bars
2.4 GHz, Home, ATTSTzKhCI
No

192.168.1.82 / iPad
on
Wi-Fi   Wi-Fi 3 bars
5 GHz, Home, ATTSTzKhCI
No

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

The ESP32 device usually has “espressif” on the name. It can also be the “unknown” devices. 
As I’ve answered you in another question, I think it would be better to get a new board. The board must be faulty, that’s the only explanation I can find.
I’m sorry that I can’t help much in this subject.
Regards,
Sara
 

0 Vote Up Vote Down
Robert Gillespie answered 4 years ago

Sara, you helped a lot.  I will order a new board.  Thanks and have a safe and fulfilling day.
Bob

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

Thank you.
Then, let me know if your issue is solved with the new board.
Regards,
Sara

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.