Serial.print(“Connecting”);
while (WiFi.status() != WL_CONNECTED)
{
delay(500);
Serial.print(".");
}
Serial.println();
Serial.print("Connected, IP address: ");
Serial.println(WiFi.localIP());
}
void loop() {}
it does not change SSID from factory default to the set value, when I connect to the factory set network it connects fine, but nothing happens in the Serial monitor, still keeps telling me that it is connecting.
Yes.
Please read "Read this before posting a programming question" at the top of the forum and post your sketch using code tags.
urmas1985:
it does not change SSID from factory default to the set value, when I connect to the factory set network it connects fine, but nothing happens in the Serial monitor, still keeps telling me that it is connecting.
Factory default??
If nothing happens in the serial monitor, how do you know what it's connecting to?
Is your router running WEP or WPA security?
WiFi.begin("somethingsomething", "123456");That is not a valid password, minimum length is 8 characters. In connecting as STA I suppose you would always fill out the correct password. If you want to set it up as an AP (for which you do need to do a bit more..) it is a common 'pitfall'