Re: help programming esp01 modules
Posted: Thu Dec 07, 2017 5:43 pm
Well now they're not working again. In my set up code I have:
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.
Code: Select all
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.