mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
системная информация в вебе
This commit is contained in:
@@ -4,7 +4,16 @@ void periodicTasksInit() {
|
||||
//задачи редкого выполнения
|
||||
ts.add(
|
||||
PTASK, 1000 * 30, [&](void*) {
|
||||
SerialPrint(F("i"), F("HEAP"), prettyBytes(ESP.getFreeHeap()));
|
||||
// heap
|
||||
String heap = prettyBytes(ESP.getFreeHeap());
|
||||
SerialPrint(F("i"), F("HEAP"), heap);
|
||||
jsonWriteStr_(errorsHeapJson, F("heap"), heap);
|
||||
// rssi
|
||||
jsonWriteInt_(errorsHeapJson, F("rssi"), RSSIquality());
|
||||
// uptime
|
||||
jsonWriteStr_(errorsHeapJson, F("upt"), prettyMillis(millis()));
|
||||
// build ver
|
||||
jsonWriteStr_(errorsHeapJson, F("bver"), String(FIRMWARE_VERSION));
|
||||
periodicWsSend();
|
||||
},
|
||||
nullptr, true);
|
||||
|
||||
Reference in New Issue
Block a user