We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6ea1e4 commit 8aa93b6Copy full SHA for 8aa93b6
cores/esp8266/Esp.cpp
@@ -70,3 +70,10 @@ uint16_t EspClass::getVCC(void)
70
{
71
return system_get_vdd33();
72
}
73
+
74
+uint32_t EspClass::getFreeHeap(void)
75
+{
76
+ return system_get_free_heap_size();
77
+}
78
79
cores/esp8266/Esp.h
@@ -44,6 +44,7 @@ class EspClass {
44
void reset(void);
45
void restart(void);
46
uint16_t getVCC(void);
47
+ uint32_t getFreeHeap(void);
48
};
49
50
extern EspClass ESP;
0 commit comments