mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
добавлена кнопка перезагрузки
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
#include "Utils/FileUtils.h"
|
||||
|
||||
void writeStrValueToJsonFile(const String& filename, String key, String value) {
|
||||
String tmp = readFile(filename, 4096);
|
||||
if (!jsonWriteStr_(tmp, key, value)) {
|
||||
Serial.println(F("failed write json value to file"));
|
||||
}
|
||||
writeFile(filename, tmp);
|
||||
}
|
||||
|
||||
//данная функция записывает файл из буфера страницами указанного размера
|
||||
void writeFileUint8tByFrames(const String& filename, uint8_t*& big_buf, size_t length, size_t headerLenth, size_t frameSize) {
|
||||
String path = filepath(filename);
|
||||
|
||||
Reference in New Issue
Block a user