You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was able to directly pass File to a parseObject and it was read properly, but when i added the struct, the way you suggest it to be added in another thread, it wont accept the File any more.
This was working ok:
DynamicJsonBuffer configFileJB;
File configFile = SPIFFS.open("/settings.json", "r");
if (!configFile) {
Serial.println("Failed to open config file");
}
JsonObject& settings = configFileJB.parseObject(configFile);
I was able to directly pass File to a parseObject and it was read properly, but when i added the struct, the way you suggest it to be added in another thread, it wont accept the File any more.
This was working ok:
Now when i added the struct:
I can't pass File to .parse() i have to do this:
How is the File recognizes in first example? Can't figure out from here: https://arduinojson.org/api/jsonbuffer/parseobject/
The text was updated successfully, but these errors were encountered: