diff --git a/code/espurna/settings.ino b/code/espurna/settings.ino index 04463f48..24cd117e 100644 --- a/code/espurna/settings.ino +++ b/code/espurna/settings.ino @@ -66,6 +66,11 @@ void settingsSetup() { ESP.reset(); }); + Embedis::command( F("STATUS"), [](Embedis* e) { + Serial.printf("Free heap: %d bytes\n", ESP.getFreeHeap()); + e->response(Embedis::OK); + }); + Embedis::command( F("EEPROM.DUMP"), [](Embedis* e) { for (unsigned int i = 0; i < SPI_FLASH_SEC_SIZE; i++) { if (i % 16 == 0) Serial.printf("\n[%04X] ", i);