WiFi.mode(WIFI_STA);
Serial.println("passed WiFi.mode");
WiFi.begin(ssid, password);
Serial.println("passed WiFi.begin");
while (WiFi.waitForConnectResult() != WL_CONNECTED) {
Serial.println("Connection Failed! Rebooting...");
delay(5000);
ESP.restart();
Serial.println("Connected?");
}
The last thing I get on the serial monitor is "passed WiFi.begin", I never see "Connected?" or anything past this in the code. The same happens for 2 of them now.