Hi experts,
So, I’m making a smart energy meter using IoT with theft detection system.
I’m working on a project using an ESP32 and I’m facing an issue with connecting it to Wi-Fi. Here’s what I’ve done and observed:
- I’m using my mobile hotspot (Samsung Galaxy) as the Wi-Fi network.
- The SSID and password are correctly entered in the code.
- My hotspot is set to 2.4 GHz , not 5 GHz.
- The ESP32 uploads the code successfully via Arduino IDE.
- However, it fails to connect to Wi-Fi — it just keeps printing “Connecting to WiFi…” endlessly in the Serial Monitor.
- I also noticed that GPIO0 is connected to GND while uploading the code but removed from ground when its booting the code.
I tried:
- Resetting the ESP32
- Replacing the hotspot with another phone
- Verifying the credentials
But still no luck.
Is there something else in the code/setup that might be wrong?
Thanks in advance for any help!