-
Notifications
You must be signed in to change notification settings - Fork 81
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
Reset reason info of ESP32 available in SensESP/Signal K #666
Comments
Ok, 666 is a very devil 😈 issue! You can use UIOutput to show anything on the SensESP web UI home page. |
Noticed also devil sequence number, but I'm not superstitious 😉 I was thinking something like system_info_sensor reporting now and mainly to SK. In SensESP Web UI, there would be nice to have also uptime info available in addition to last reset reason. I could take a look to UIOutput. As C/C++ is not my core competencies, this might take some time, but I'm not in a hurry too. |
UIOutput is simple concept, where you define the output (name, value, group), something like this: and then you call to update it's value
So for simple reset reason web UI output it could look like: IDF source: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/misc_system_api.html
In main:
|
It would be good to have reset reason information available to SensESP UI or/and stream to Signal K.
Currently reset can be detected by monitoring USB debug stream or uptime data. If USB is not connected then it is very hard or imposdible to find out what was the reason of reset if it might happend.
ESP32 api support following debug info to be read from the system
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/misc_system_api.html#_CPPv416esp_reset_reasonv
The text was updated successfully, but these errors were encountered: