Added Extra Heartbeat Metrics and Separated HTML Page

This commit is contained in:
2025-12-29 20:38:52 +02:00
parent 953b5bd07d
commit 3d184773c1
3 changed files with 298 additions and 254 deletions

View File

@@ -480,7 +480,11 @@ void loop()
// 🔥 DEBUG: Log every 10 seconds to verify we're still running
static unsigned long lastLog = 0;
if (millis() - lastLog > 10000) {
LOG_DEBUG("❤️ Loop alive, free heap: %d", ESP.getFreeHeap());
LOG_DEBUG("❤️ Loop alive | Free heap: %d bytes (%.1f KB) | Min free: %d | Largest block: %d",
ESP.getFreeHeap(),
ESP.getFreeHeap() / 1024.0,
ESP.getMinFreeHeap(),
ESP.getMaxAllocHeap());
lastLog = millis();
}