feat: add MQTT repeater support, web config panel, and EastMesh-specific firmware workflows

Этот коммит содержится в:
Jared Dohrman
2026-04-09 15:00:53 +10:00
родитель 2ab5f5128f
Коммит 98fe78a379
27 изменённых файлов: 3412 добавлений и 103 удалений
+20
Просмотреть файл
@@ -1,6 +1,7 @@
#pragma once
#include "Mesh.h"
#include <Arduino.h>
class StatsFormatHelper {
public:
@@ -52,4 +53,23 @@ public:
driver.getPacketsRecvErrors()
);
}
static void formatMemoryStats(char* reply, size_t reply_size) {
if (reply == nullptr || reply_size == 0) {
return;
}
#if defined(ESP32)
snprintf(reply, reply_size,
"{\"heap_free\":%u,\"heap_min\":%u,\"heap_max\":%u,\"psram_free\":%u,\"psram_min\":%u,\"psram_max\":%u}",
ESP.getFreeHeap(),
ESP.getMinFreeHeap(),
ESP.getMaxAllocHeap(),
ESP.getFreePsram(),
ESP.getMinFreePsram(),
ESP.getMaxAllocPsram()
);
#else
snprintf(reply, reply_size, "{\"supported\":false}");
#endif
}
};