-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Comments
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. |
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. |
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.
The text was updated successfully, but these errors were encountered: