I just want to do the double reset of the ESP8266 through code (sketch) .Is there any command or function for this ?is it possible??

  • Double reset? What's that? – Majenko Jul 10 '20 at 7:30
  • Why would you want to? If the device is already under your control, couldn’t you just run the code you would otherwise run after a double reset (like reconfiguring Wifi)? – StarCat Jul 10 '20 at 7:57
  • you have an esp8266 module wired to Arduino and you want to reset it from the sketch in Arduino? – Juraj Jul 10 '20 at 9:20
  • In node mcu we have one double reset button .when we press that button it will re start the wifi . – kiran Jul 10 '20 at 10:37
  • yes sir ,how do i go for that???@Juraj – kiran Jul 10 '20 at 10:41

There are not enough details in the question so we need to guess the goal of the project. Assuming the goal is to have alternative behaviors depending on pressing the reset button once or twice with in a given span of time.

This project at github likely uses the RTC and some of the RTC flash memory in an ESP8266 to determine if the reset button has been pressed once or twice in a given span of time.

From that project:

PURPOSE: Detects a double reset so that an alternative start-up mode can be used. One example use is to allow re-configuration of a device's wifi.

  • This does not answer the question. The question is about generating a double reset programatically, not detecting it. – StarCat Jul 10 '20 at 12:55
  • I am not sure generating a double reset (what ever this turns out to be) is the end goal. Let us hear a response from the person (@kiran) posting the question. I had hoped he would respond to this answer and by doing so would give us enough information to make a better question and answer. – st2000 Jul 10 '20 at 13:38
  • I agree. The question and the underlying reasons for it are far from clear. – StarCat Jul 10 '20 at 13:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.