Skip to content

Commit 8aa93b6

Browse files
committed
add EspClass::getFreeHeap see #81
1 parent b6ea1e4 commit 8aa93b6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

cores/esp8266/Esp.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,10 @@ uint16_t EspClass::getVCC(void)
7070
{
7171
return system_get_vdd33();
7272
}
73+
74+
uint32_t EspClass::getFreeHeap(void)
75+
{
76+
return system_get_free_heap_size();
77+
}
78+
79+

cores/esp8266/Esp.h

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class EspClass {
4444
void reset(void);
4545
void restart(void);
4646
uint16_t getVCC(void);
47+
uint32_t getFreeHeap(void);
4748
};
4849

4950
extern EspClass ESP;

0 commit comments

Comments
 (0)