mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-31 04:19:15 +03:00
15 lines
389 B
C++
15 lines
389 B
C++
#include "EspFileSystem.h"
|
|
|
|
bool fileSystemInit() {
|
|
if (!FileFS.begin()) {
|
|
SerialPrint(F("E"), F("FS"), F("Init ERROR, may be FS was not flashed"));
|
|
return false;
|
|
}
|
|
SerialPrint(F("i"), F("FS"), F("Init completed"));
|
|
return true;
|
|
}
|
|
|
|
void globalVarsSync() {
|
|
settingsFlashJson = readFile("settings.json", 4096);
|
|
settingsFlashJson.replace("\r\n", "");
|
|
} |