mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
версия 404, много исправлений
This commit is contained in:
@@ -14,11 +14,15 @@ void periodicTasksInit() {
|
||||
// uptime
|
||||
jsonWriteStr_(errorsHeapJson, F("upt"), prettyMillis(millis()));
|
||||
jsonWriteStr_(errorsHeapJson, F("uptm"), prettyMillis(mqttUptime));
|
||||
// flash
|
||||
jsonWriteInt_(errorsHeapJson, F("fl"), flashWriteNumber);
|
||||
// build ver
|
||||
jsonWriteStr_(errorsHeapJson, F("bver"), String(FIRMWARE_VERSION));
|
||||
jsonWriteStr_(errorsHeapJson, F("bn"), String(FIRMWARE_NAME));
|
||||
periodicWsSend();
|
||||
},
|
||||
nullptr, true);
|
||||
SerialPrint("i", "Task", "Periodic tasks init");
|
||||
}
|
||||
|
||||
void handleError(String errorId, String errorValue) {
|
||||
@@ -43,7 +47,11 @@ void printGlobalVarSize() {
|
||||
|
||||
size_t halfBuffer = JSON_BUFFER_SIZE / 2;
|
||||
|
||||
if (settingsFlashJsonSize > halfBuffer || errorsHeapJsonSize > halfBuffer || paramsFlashJsonSize > halfBuffer || paramsHeapJsonSize > halfBuffer) {
|
||||
if (settingsFlashJsonSize > halfBuffer ||
|
||||
errorsHeapJsonSize > halfBuffer ||
|
||||
paramsFlashJsonSize > halfBuffer ||
|
||||
paramsHeapJsonSize > halfBuffer ||
|
||||
devListHeapJsonSize > halfBuffer) {
|
||||
SerialPrint(F("EE"), F("Json"), F("Insufficient buffer size!!!"));
|
||||
jsonWriteInt(errorsHeapJson, "jse1", 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user