Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifying the RESET button behavior #189

Closed
mottibz opened this issue Sep 20, 2023 · 6 comments
Closed

Modifying the RESET button behavior #189

mottibz opened this issue Sep 20, 2023 · 6 comments
Labels

Comments

@mottibz
Copy link

mottibz commented Sep 20, 2023

Hello,
I have a few of your T-Display-S3 devices and I developed on them a system, integrated with ESP Rainmaker, to control my smart home.
I want to set this up also at a few friends' houses but there is one issue.
If somebody pushes the RESET button, the device will reset itself immediately. This is not good as they may do this accidentally. 
My question is if there is a way to disable this button from immediately resetting the device but for example, require the user to push it for at least 10 seconds before it will reset the device?
Thanks a lot for your help!!!
Best Regards,
Motti

@teastainGit
Copy link

The Reset button is hard wired into the ESP32.
Best idea is to make your code start and run after a power failure or Reset.
My HVAC ESP_NOW system does this and I cannot tell if there was a power failure!
-Terry

@mottibz
Copy link
Author

mottibz commented Sep 21, 2023

Hi, That's what currently happens (my code starts again and works) but some data that is in memory is lost and all starts from scratch. At least if I could get a callback to save info before resetting or something else. I can't afford to do a save to flash for every small operation... Is there something possible?

@mager33
Copy link

mager33 commented Feb 11, 2024

You can evaluate the reason why the ESP32 was reset, so you can detect that the reset button was pressed. Look here: espressif/arduino-esp32#449

@mottibz
Copy link
Author

mottibz commented Feb 12, 2024

Thanks for the suggestion! I will use it.
Only problem is that knowing the reason after restart does not help with in-memory data that was lost :-)

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Mar 23, 2024
Copy link

github-actions bot commented Apr 8, 2024

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as completed Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants