1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-08-07 00:04:36 +03:00

Merge pull request #1495 from hallard/master

Added function to return reset reason in human readable format
This commit is contained in:
Ivan Grokhotkov
2016-01-25 09:23:41 +03:00
5 changed files with 33 additions and 7 deletions

View File

@@ -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.