Skip to content

Commit c81abd2

Browse files
committed
Added getResetReason
1 parent d9a51f9 commit c81abd2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

doc/changes.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ title: Change Log
66

77
### Core
88

9+
- Add function to know last reset resaon.
910
- Allow control of enabling debug and debug level from IDE
1011
- Make HardwareSerial::begin() and end() interrupt safe
1112
- Put HardwareSerial and cbuf methods called from interrupt context in RAM

doc/libraries.md

+2
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ APIs related to deep sleep and watchdog timer are available in the `ESP` object,
8383

8484
`ESP.restart()` restarts the CPU.
8585

86+
`ESP.getResetReason()` returns String containing the last reset resaon in human readable format.
87+
8688
`ESP.getFreeHeap()` returns the free heap size.
8789

8890
`ESP.getChipId()` returns the ESP8266 chip ID as a 32-bit integer.

0 commit comments

Comments
 (0)