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
//build json object of program data
StaticJsonBuffer<200> jsonBuffer;
JsonObject &json = jsonBuffer.createObject();
json["x"] = x;
json["y"] = y;
char jsonchar[200];
json.printTo(jsonchar); //print to char array, takes more memory but sends in one piece
server.send(200, "application/json", jsonchar);
To:
//build json object of program data
StaticJsonDocument<200> jsonBuffer;
JsonObject json = jsonBuffer.to<JsonObject>();
json["x"] = x;
json["y"] = y;
char jsonchar[200];
serializeJson(jsonBuffer, jsonchar); //print to char array, takes more memory but sends in one piece
server.send(200, "application/json", jsonchar);
A quick look in to it and it appears that there is a compatibility issue with the new
version 6 JSON library.
The text was updated successfully, but these errors were encountered: