this is small but it is caused after only serial upload. You will notice that it resets the ESP but wont start the program again. after uploading open serial monitor you will find below reset ESP software reset results the loop function runs over and over again foreverĭigitalWrite(2, HIGH) // turn the LED on (HIGH is the voltage level)ĭigitalWrite(2, LOW) // turn the LED off by making the voltage LOW initialize digital pin LED_BUILTIN as an output. the setup function runs once when you press reset or power the board * and resets at 6 count before completing counting This example program will show you software reset in a loop before it reaches to its max value.ĮSP.reset() is a hard reset and can leave some of the registers in the old state which can lead to problems, its more or less like the reset button on the PC.ĮSP.restart() tells the SDK to reboot, so its a more clean reboot. Software reset for ESP8266 is required when you get trouble to connect WiFi router. This sketch/example shows software reset using simple command ESP.restart() or ESP.reset().
This tutorial shows hot to software reset ESP8266 in Arduino IDE.