Unknown information printing to serial monitor

Anyone know why im getting this weird information printing to my serial monitor? The first thing that should print is "wifi connecting to."

HERE IS MY CODE

#include <ESP8266WiFi.h>

const char* ssid="";
const char* password = "";

int ledPin = 7;

void setup() {

pinMode(ledPin,OUTPUT);
digitalWrite(ledPin,HIGH);

Serial.begin(115200);
Serial.println();
Serial.print("Wifi connecting to ");
Serial.println( ssid );

WiFi.begin(ssid,password);

Serial.println();
Serial.print("Connecting");

while( WiFi.status() != WL_CONNECTED ){
delay(500);
Serial.print(".");
}

digitalWrite( ledPin , HIGH);
Serial.println();

Serial.println("Wifi Connected Success!");
Serial.print("NodeMCU IP Address : ");
Serial.println(WiFi.localIP() );

}

void loop() {
// put your main code here, to run repeatedly:
delay(1000);
}

HERE IS WHATS PRINTING TO MY SERIAL MONITOR

" ets Jan 8 2013,rst cause:4, boot mode:(3,6)

wdt reset
load 0x4010f000, len 3584, room 16
tail 0
chksum 0xb0
csum 0xb0
v2843a5ac
~ld"

First off, if I don't tell you this, someone else will: Use the code tags to paste code, like this

this is my code

Read this post: Read this before posting a programming question ... - Programming Questions - Arduino Forum and pay attention to #6 Getting help on the forum

OK, on to your problem. You're using an ESP8266 and it would appear that your program is getting hung up on this bit of code:

WiFi.begin(ssid,password);

I say that because the first part of your error message has this line:

wdt reset

That says the wdt (watch dog timer) kicked in and reset your ESP8266 because your program stopped it's execution.

The wdt (watch dog timer) is part of FreeRTOS that is running in the background on the ESP8266. FreeRTOS is Free Real Time Operating System. It's an operating system, running in the background, and it detected that the ESP8266 has stopped execution.

I know this because I'm using and ESP32 and have encountered these problems. What I don't know is why you are having this problem because I've not used wifi on the ESP32. One thing that might be causing your problem is your loop code:

void loop() {
  // put your main code here, to run repeatedly:
delay(1000);
}

It does nothing, which can trigger the wdt. Maybe just putting a - Serial.print() - statement in the loop, so the loop actually does something will stop the wdt.
IDK if I'm right or not...
Randy

See Serial Monitor shows weird characters

Still having this same issue if anyone else has some ideas.

That error code can come from incorrect pin usage

int ledPin = 7;

Try instead

int ledPin = D7;

What specific esp8266 board are you using?

I used “ledpin = 7” on a code right before this when i first got the board and was testing it out. I just uploaded a simple blinking led code on it to make sure I could upload to it and open the serial monitor and stuff.

This is my board:
HiLetgo 1PC ESP8266 NodeMCU CP2102 ESP-12E Internet WiFi Development Board Open Source Serial Wireless Module Works Great for Arduino IDE/Micropython (Small) https://www.amazon.com/dp/B010O1G1ES/ref=cm_sw_r_cp_api_glc_fabc_k9GdGbZKAKT2C?_encoding=UTF8&psc=1

I used "ledpin = 7" on a code right before this when i first got the board and was testing it out. I just uploaded a simple blinking led code on it to make sure I could upload to it and open the serial monitor and stuff.

What happens when you now load that original code?

It works fine with the original code. It even prints “on” and “off” to the serial monitor.

Pin 7, that is GPIO 7, is not usually broken out on an esp8266 module and is used for the flash memory SPI bus. This is one of the pins you should not use in your sketch.