Browse Source

Added status command to terminal interface

fastled
Xose Pérez 7 years ago
parent
commit
f67dc8a24b
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      code/espurna/settings.ino

+ 5
- 0
code/espurna/settings.ino View File

@ -66,6 +66,11 @@ void settingsSetup() {
ESP.reset(); 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) { Embedis::command( F("EEPROM.DUMP"), [](Embedis* e) {
for (unsigned int i = 0; i < SPI_FLASH_SEC_SIZE; i++) { for (unsigned int i = 0; i < SPI_FLASH_SEC_SIZE; i++) {
if (i % 16 == 0) Serial.printf("\n[%04X] ", i); if (i % 16 == 0) Serial.printf("\n[%04X] ", i);


Loading…
Cancel
Save