I'm trying to connect my nodeMCU to my WiFi network but it keeps printing ........
which means is not connecting to the network. Here is my code used to connect to WiFi. Any reason why it isn't connecting to WiFi network?.
#include <ESP8266WiFi.h>
// Replace these with your WiFi network settings
const char* ssid = "******"; //replace this with your WiFi network name
const char* password = "******"; //replace this with your WiFi network password
void setup()
{
delay(1000);
Serial.begin(57600);
WiFi.begin(ssid, password);
Serial.println();
Serial.print("Connecting");
while (WiFi.status() != WL_CONNECTED)
{
delay(500);
Serial.print(".");
}
Serial.println("success!");
Serial.print("IP Address is: ");
Serial.println(WiFi.localIP());
}
void loop() {
}