From 50c231edcf453fd87e0a7018b367b3f48e5b4802 Mon Sep 17 00:00:00 2001 From: Thomas Ballmann Date: Sun, 16 May 2021 09:57:30 +0200 Subject: [PATCH] device specs added --- lib/app/app.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/app/app.cpp b/lib/app/app.cpp index 2632e27..57e5806 100644 --- a/lib/app/app.cpp +++ b/lib/app/app.cpp @@ -138,6 +138,9 @@ void setupApp() doc["device"]["heap"]["total"] = ESP.getHeapSize(); doc["device"]["heap"]["free"] = ESP.getFreeHeap(); + doc["device"]["specs"]["cpu"] = ESP.getCpuFreqMHz(); + doc["device"]["specs"]["flash"] = ESP.getFlashChipSize(); + doc["playlist"]["current"] = playlistGetCurrentFace(); doc["playlist"]["remaining"] = (playlistGetRemainingTimeMs() / 1000) + 3; // + face rendering time 3s