update schematic and add production files
This commit is contained in:
@@ -20,12 +20,8 @@ void loadConfig(const char *fname)
|
||||
StaticJsonDocument<512> doc;
|
||||
DeserializationError error = deserializeJson(doc, file);
|
||||
if (error)
|
||||
Serial.println(F("Failed to read file, using default configuration"));
|
||||
JsonArray array = doc.as<JsonArray>();
|
||||
for(JsonVariant v : array) {
|
||||
Serial.print("json entry: ");
|
||||
Serial.println(v.as<String>());
|
||||
}
|
||||
Serial.println(F("Failed to read file"));
|
||||
|
||||
serializeJsonPretty(doc, Serial);
|
||||
Serial.println("config: load done");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user