mqtt подключение

This commit is contained in:
Dmitry Borisenko
2022-02-12 03:09:57 +01:00
parent 8d86bb222a
commit 38acd7f569
14 changed files with 74 additions and 38 deletions

View File

@@ -274,7 +274,8 @@ String jsonWriteFloat(String& json, String name, float value) {
}
void jsonErrorDetected() {
int number = jsonReadInt(errorsHeapJson, F("jserr"));
jsonWriteInt(errorsHeapJson, F("jse2"), 1);
int number = jsonReadInt(errorsHeapJson, F("jse2n"));
number++;
jsonWriteInt(errorsHeapJson, F("jserr"), number);
jsonWriteInt(errorsHeapJson, F("jse2n"), number);
}