mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
устранение багов
This commit is contained in:
@@ -318,8 +318,9 @@ String jsonWriteFloat(String& json, String name, float value, bool e) {
|
||||
}
|
||||
|
||||
void jsonErrorDetected() {
|
||||
jsonWriteInt(errorsHeapJson, F("jse2"), 1);
|
||||
int number = jsonReadInt(errorsHeapJson, F("jse2n"));
|
||||
number++;
|
||||
jsonWriteInt(errorsHeapJson, F("jse2n"), number);
|
||||
// пример как отправить ошибку с количеством
|
||||
// jsonWriteInt(errorsHeapJson, F("jse2"), 1);
|
||||
// int number = jsonReadInt(errorsHeapJson, F("jse2n"));
|
||||
// number++;
|
||||
// jsonWriteInt(errorsHeapJson, F("jse2n"), number);
|
||||
}
|
||||
Reference in New Issue
Block a user