show free heap in UI

This commit is contained in:
andreas 2023-01-09 16:44:56 +01:00
parent b1eb46b973
commit 6f9d5b05ce
2 changed files with 5 additions and 0 deletions

View File

@ -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);

View File

@ -55,6 +55,10 @@
<span class="label">TCP client error</span>
<span class="value" id="clientErr">---</span>
</div>
<div class="row">
<span class="label">Free heap</span>
<span class="value" id="heap">---</span>
</div>
</div>
<button id="reset">Reset</button>
</div>