Restart ESP8266

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
H3inz3lmann
Posts: 8
Joined: Sun Mar 05, 2017 2:37 pm

Restart ESP8266

Post by H3inz3lmann » Fri May 05, 2017 8:28 am

Hi,
is there a way to restart the ESP from the code?
I know that there is the reset function in the machine library.
But I don't think that it is what I'm searching for.
I need a function that shuts the ESP completly down like pulling the plug.
Best Matthias

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: Restart ESP8266

Post by deshipu » Fri May 05, 2017 1:16 pm

You can connect one of the gpio pins to the EN (CH_PD) pin, and use that pin for restart/shutdown.

You can also put your board into deep sleep indefinitely, which is similar to shutting it down (the current it takes is minimal then).

What are you actually trying to achieve?

H3inz3lmann
Posts: 8
Joined: Sun Mar 05, 2017 2:37 pm

Re: Restart ESP8266

Post by H3inz3lmann » Mon May 08, 2017 8:29 am

I use mqtt to start and stop some measurements the ESP is doing.
But after 2 times starting the measure the ESP crashes. So I want to restart it after every measurement.
Thanks vor the help, i will try this =)

Post Reply