assembly output + json testing
This commit is contained in:
@@ -15,6 +15,7 @@ std::vector<tagConfig> tags;
|
||||
|
||||
void loadConfig(const char *fname)
|
||||
{
|
||||
Serial.println("config: load");
|
||||
File file = LITTLEFS.open(fname);
|
||||
StaticJsonDocument<512> doc;
|
||||
DeserializationError error = deserializeJson(doc, file);
|
||||
@@ -22,13 +23,21 @@ void loadConfig(const char *fname)
|
||||
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>());
|
||||
}
|
||||
serializeJsonPretty(doc, Serial);
|
||||
Serial.println("config: load done");
|
||||
|
||||
}
|
||||
|
||||
void initConfig(void)
|
||||
{
|
||||
Serial.println("config: init");
|
||||
|
||||
loadConfig(tagConfigfile);
|
||||
Serial.println("config: init done");
|
||||
|
||||
}
|
||||
|
||||
void handleConfig(void)
|
||||
|
||||
Reference in New Issue
Block a user