mirror of
https://gitlab.com/wirelos/sprocket-lib.git
synced 2025-12-16 05:24:30 +01:00
stuff
This commit is contained in:
@@ -52,7 +52,6 @@ struct JsonStruct {
|
||||
};
|
||||
|
||||
void fromFile(const char* path) {
|
||||
Serial.println("read json");
|
||||
File configFile = SPIFFS.open(path, "r");
|
||||
String cfgFileStr = configFile.readString();
|
||||
|
||||
@@ -68,11 +67,10 @@ struct JsonStruct {
|
||||
valid = verifyJsonObject(json);
|
||||
|
||||
if(configFile) {
|
||||
Serial.println("map json object");
|
||||
fromJsonObject(json);
|
||||
}
|
||||
if(!valid){
|
||||
Serial.println("read json failed");
|
||||
Serial.println("ERROR: read failed for " + String(path));
|
||||
}
|
||||
configFile.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user