I recently acquired an ESP32 Arduino-Style board, and intend on using it with my home wifi. However, after doing a very simple initial test with some tutorial code I found online, I found that the board will simply loop forever, unable to connect to my home wifi. I have rigorously checked that I am using the correct SSID and password. In addition, I have found that the ESP32 connects just fine to a mobile hotspot. The simple example code is below:
Code: Select all
#include <WiFi.h>
const char* ssid = "REDACTED";
const char* password = "REDACTED";
void setup() {
Serial.begin(115200);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.println("Connecting to WiFi..");
}
Serial.println("Connected to the WiFi network");
}
void loop() {
}