D1 Mini connecting to Wifi issues

Hi all,

I used D1 Mini and Arduino IDE and the serial monitor outputs the following, even after I reset it, it is still the same message

I used the code to attempt connecting to home wifi but it is not working, does anyone know why? I followed all the instructions

Thanks

#include <ESP8266WiFi.h>

// Network SSID
const char* ssid = "Saif";
const char* password = "glockglock2747";
 
void setup() {
  
  Serial.begin(115200);
  delay(10);
 
  // Connect WiFi
  Serial.println();
  Serial.println();
  Serial.print("Connecting to ");
  Serial.println(ssid);
  WiFi.hostname("Name");
  WiFi.begin(ssid, password);
 
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }
  Serial.println("");
  Serial.println("WiFi connected");
 
  // Print the IP address
  Serial.print("IP address: ");
  Serial.print(WiFi.localIP());
}
 
void loop() {
  
//Add your project's loop code here

  }

What seems to be issue and nothing is showing up ?

wrong baudrate in the serial monitor
Your code uses

Serial.begin(115200);

and then your serial-monitor must be adjusted to baud 115200
best regards Stefan

Never mind it is working after I restarted the computer

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.