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
Actually when i print lJsonRoot just at the end of GetJsonRoot,it is giving correct data.
But when i print the in the caller method it is giving garbage data for only first name of data.
Hi all
JsonObject& GetJsonRoot() {
File lConfigFile = SPIFFS.open(CONFIG_FILE_PATH, "r");
DynamicJsonBuffer lJsonBuffer;
JsonObject* lJsonRoot = NULL;
if (!lConfigFile) {
Serial.println("Failed to open config file");
return *lJsonRoot;
}
}
Actually when i print lJsonRoot just at the end of GetJsonRoot,it is giving correct data.
But when i print the in the caller method it is giving garbage data for only first name of data.
Correct Data:-{"serverName":"api.example.com","accessToken":"128du9as8du12eoue8da98h123ueh9h98"}
Incorrect Data:- {"⸮�":"api.example.com","accessToken":"128du9as8du12eoue8da98h123ueh9h98"}
Thanks in advance for the help.
Kind Regards
Pulkit Jain
The text was updated successfully, but these errors were encountered: