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?
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
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.
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
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.
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.
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
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
Hi.
I’m sorry. I forgot to mention that you need to install these libraries:
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
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
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
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
5 GHz, Home, ATTSTzKhCI
No
192.168.1.66 / iPad
on
Wi-Fi
5 GHz, Home, ATTSTzKhCI
No
192.168.1.67 / DESKTOP-H2C5GS8
on
Wi-Fi
2.4 GHz, Home, ATTSTzKhCI
No
192.168.1.69 / Bob-PC
on
Wi-Fi
5 GHz, Home, ATTSTzKhCI
No
192.168.1.71 / SAMSUNG-SM-J320A
on
Wi-Fi
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
2.4 GHz, Home, ATTSTzKhCI
No
192.168.1.76 / unknown20f85e1d9a81
on
Wi-Fi
2.4 GHz, Home, ATTSTzKhCI
No
192.168.1.82 / iPad
on
Wi-Fi
5 GHz, Home, ATTSTzKhCI
No
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
Sara, you helped a lot. I will order a new board. Thanks and have a safe and fulfilling day.
Bob