From 6f9d5b05cea0909cf020b1757656475f7c69b619 Mon Sep 17 00:00:00 2001 From: andreas Date: Mon, 9 Jan 2023 16:44:56 +0100 Subject: [PATCH] show free heap in UI --- src/main.cpp | 1 + web/index.html | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index becdce6..138a4e9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -403,6 +403,7 @@ protected: toHex(base,buffer,bsize); status["salt"] = buffer; status["fwtype"]= firmwareType; + status["heap"]=(long)xPortGetFreeHeapSize(); //nmea0183Converter->toJson(status); countNMEA2KIn.toJson(status); countNMEA2KOut.toJson(status); diff --git a/web/index.html b/web/index.html index a607101..2ecf096 100644 --- a/web/index.html +++ b/web/index.html @@ -54,6 +54,10 @@
TCP client error --- +
+
+ Free heap + ---