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

Any way to reboot the ESP from the touchscreen? #188

Open
mattster98 opened this issue May 16, 2022 · 2 comments
Open

Any way to reboot the ESP from the touchscreen? #188

mattster98 opened this issue May 16, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@mattster98
Copy link

I had a failure mode recently I haven't encountered before where the touch panel is working, but it is not on the network or connected to MQTT. I eventually had to disconnect power to recover. It came back fine - not sure what the issue was.

But, it made me realize I don't think there's any other way to force a reboot other than via MQTT. I saw an option in the code to force a reboot when p[0].b[1] is pressed, but it's false by default. Is something like that the best/only option? I see you can restart the nextion lcd with a button command, but I don't think that would have helped.

I was thinking long-pressing any button for more than X seconds might be a reasonable watchdog-style reboot mechanism. Not sure if that's possible. Or, if the ESP can see the nextion reboot I could use that option to trigger it.

@aderusha
Copy link
Collaborator

aderusha commented May 16, 2022

rebootOnp0b1 is set true while the code is handling the WiFi connection or MQTT connection with the intent of giving the user a chance to reboot the system during these steps if something isn't working.

A long press (or maybe "press 5 times in two seconds" or similar) might be another solution that could be setup to run at all times. I'll add this as a feature request and maybe figure something out that works a little better than the current solution.

@aderusha aderusha added the enhancement New feature or request label May 16, 2022
@aderusha aderusha self-assigned this May 16, 2022
@aderusha
Copy link
Collaborator

Allright, added this feature to the current 1.06 development branch. Hold any button down for 10 seconds (or more), release, and the device will trigger a reboot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants