From f67dc8a24b7ccb7193363dfd4b897d11e681a754 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Thu, 16 Feb 2017 00:20:55 +0100 Subject: [PATCH] Added status command to terminal interface --- code/espurna/settings.ino | 5 +++++ 1 file changed, 5 insertions(+) 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);