mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-04 01:23:50 +03:00
Documenting a few Esp.cpp methods (#3057)
Adding: getCoreVersion, getSdkVersion, getCpuFreqMHz, getSketchSize, getFreeSketchSpace and getSketchMD5.
This commit is contained in:
@ -93,13 +93,23 @@ APIs related to deep sleep and watchdog timer are available in the `ESP` object,
|
|||||||
|
|
||||||
`ESP.restart()` restarts the CPU.
|
`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.getFreeHeap()` returns the free heap size.
|
||||||
|
|
||||||
`ESP.getChipId()` returns the ESP8266 chip ID as a 32-bit integer.
|
`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.
|
`ESP.getFlashChipId()` returns the flash chip ID as a 32-bit integer.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user