1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-25 20:02:37 +03:00

Documenting a few Esp.cpp methods (#3057)

Adding: getCoreVersion, getSdkVersion, getCpuFreqMHz, getSketchSize, getFreeSketchSpace and getSketchMD5.
This commit is contained in:
André 2017-05-14 09:53:15 -03:00 committed by Ivan Grokhotkov
parent 0b47911b69
commit 9fd270faf1

View File

@ -93,13 +93,23 @@ 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 reason in human readable format.
`ESP.getResetReason()` returns a String containing the last reset reason in human readable format.
`ESP.getFreeHeap()` returns the free heap size.
`ESP.getChipId()` returns the ESP8266 chip ID as a 32-bit integer.
Several APIs may be used to get flash chip info:
`ESP.getCoreVersion()` returns a String containing the core version.
`ESP.getSdkVersion()` returns the SDK version as a char.
`ESP.getCpuFreqMHz()` returns the CPU frequency in MHz as an unsigned 8-bit integer.
`ESP.getSketchSize()` returns the size of the current sketch as an unsigned 32-bit integer.
`ESP.getFreeSketchSpace()` returns the free sketch space as an unsigned 32-bit integer.
`ESP.getSketchMD5()` returns a lowercase String containing the MD5 of the current sketch.
`ESP.getFlashChipId()` returns the flash chip ID as a 32-bit integer.