platform: provide free ram metrics

This commit is contained in:
2023-02-18 15:43:15 +01:00
parent 2a602225d2
commit 56e2e76954
2 changed files with 9 additions and 0 deletions

View File

@@ -68,6 +68,14 @@ Platform::version()
#endif
}
int
Platform::freeRam()
{
#ifdef BOARD_ESP8266
return ESP.getFreeHeap();
#endif
}
void
Platform::preSetup()
{