From c81abd2a926796627834b1aa1ee15879a1b86471 Mon Sep 17 00:00:00 2001 From: Charles <hallard04@free.fr> Date: Mon, 25 Jan 2016 00:48:46 +0100 Subject: [PATCH] Added getResetReason --- doc/changes.md | 1 + doc/libraries.md | 2 ++ 2 files changed, 3 insertions(+) diff --git a/doc/changes.md b/doc/changes.md index 1855121d5..bed0289f1 100644 --- a/doc/changes.md +++ b/doc/changes.md @@ -6,6 +6,7 @@ title: Change Log ### Core +- Add function to know last reset resaon. - Allow control of enabling debug and debug level from IDE - Make HardwareSerial::begin() and end() interrupt safe - Put HardwareSerial and cbuf methods called from interrupt context in RAM diff --git a/doc/libraries.md b/doc/libraries.md index 210171ec6..22e913bab 100644 --- a/doc/libraries.md +++ b/doc/libraries.md @@ -83,6 +83,8 @@ APIs related to deep sleep and watchdog timer are available in the `ESP` object, `ESP.restart()` restarts the CPU. +`ESP.getResetReason()` returns String containing the last reset resaon in human readable format. + `ESP.getFreeHeap()` returns the free heap size. `ESP.getChipId()` returns the ESP8266 chip ID as a 32-bit integer.