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
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.
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?
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.