mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-10 10:17:05 +01:00
Added status command to terminal interface
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user