Factory Reset via Reset Button

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Normal user
Posts: 11
Joined: 08 Oct 2020, 04:15

Factory Reset via Reset Button

#1 Post by mrh_icb » 28 Nov 2020, 04:42

A feature suggestion, which resulted from a recent application of ESPEasy in a home automation project: Factory Reset via Double (or Tripple) push of the reset button.

Sometimes it is useful to factory reset a device and return to AP selection mode, without connecting the ESP to the PC for re-flashing or without shorting the TX/RX serial pins. The reset button is readily available on almost all ESP boards, so why not use it for that? In my application I actually made a 3D-printed plastic case, which allows access to the reset button for this:
ResetButton.JPG (37.58 KiB) Viewed 5509 times
Here is a proposed implementation, which works in my project: https://github.com/letscontrolit/ESPEasy/pull/3401

This feature uses 2 additional bytes from RTC memory to store state which needs to be preserved over a reset cycle. See patch for detailed doc.

Post Reply

Who is online

Users browsing this forum: No registered users and 29 guests