
We will later access this variable on the Arduino main loop and decrement it at each iteration I will initialize it with the value 10, but you may use other value. We will start our code by declaring a global variable which will be our counter. This tutorial was tested on a DFRobot’s ESP8266 FireBeetle board. If you are looking for a simular tutorial for the Arduino core running on the ESP32, please consult this post. To illustrate the functionality, we will create a simple program that decrements a counter each second and restarts the ESP8266 when it reaches zero. In this tutorial we will check how to perform a software restart on the ESP8266 using the Arduino core.

In this tutorial we will check how to perform a software restart on the ESP8266 using the Arduino core. This tutorial was tested on a DFRobot’s ESP8266 FireBeetle board.
