Skip to content

Add ESP32 Reset Reason to existing pwrmgt.bootreason cli command - #2765

Merged
ripplebiz merged 1 commit into
meshcore-dev:devfrom
fizzyfuzzle:ESP32-Reset-Reason
Jun 23, 2026
Merged

Add ESP32 Reset Reason to existing pwrmgt.bootreason cli command#2765
ripplebiz merged 1 commit into
meshcore-dev:devfrom
fizzyfuzzle:ESP32-Reset-Reason

Conversation

@fizzyfuzzle

@fizzyfuzzle fizzyfuzzle commented Jun 14, 2026

Copy link
Copy Markdown

This small PR will add the Reset Reason functionality to the pwrmgt.bootreason CLI command for ESP32 based devices. Currently this was implemented for nRF52 devices only.

All the code was already in the current firmware except the ESP32 implementation of the getResetReason() method on the board level.

virtual uint32_t getResetReason() const { return 0; }

This should help with ESP32 boards that have rebooted for unknown reason e.g. during the test of new firmware ;)

Code is copied from https://github.com/IoTThinks/EasySkyMesh, so credits go to @IoTThinks (Thanks for this 👍 )
IoTThinks@f25db3a

@IoTThinks

Copy link
Copy Markdown
Contributor

Yah, enjoy.

@fizzyfuzzle

Copy link
Copy Markdown
Author

@liamcottle This is a small PR to add the 'reset reason' for ESP32 boards to the pwrmgt.bootreason cli. Would it be possible for this PR to get reviewed?

Thanks in advance!

@ripplebiz
ripplebiz merged commit aa1cb1f into meshcore-dev:dev Jun 23, 2026
12 checks passed
hermes-gadget added a commit to gadgethd/MeshCore-MQTT that referenced this pull request Jun 23, 2026
Upstream dev: c2cfba4..3192684 (10 commits)
- Merge PR meshcore-dev#2752: Heltec Tower V2 support (Quency-D)
- Merge PR meshcore-dev#2765: ESP32 Reset Reason (fizzyfuzzle)
- Merge PR meshcore-dev#2771: nRF52 framework build fix (oltaco)
- Build fix for Heltec Mesh Solar and Mesh Pocket
- Add ESP32 Reset Reason
- Fix low power consumption issues
- Add maximum power limit
- Add Tower V2 PA control
- Add Heltec Tower V2 board

Integration work:
- Resolved CommonCLI.cpp conflict: kept packPrefs/unpackPrefs (--theirs)
- No new NodePrefs fields in this sync window
- Removed firmware binaries from webflasher/
- Added .gitignore patterns for webflasher/, .build-test/, *.bin

All MQTT additions preserved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants