Skip to content

Arduino json6#5

Open
frodegill wants to merge 5 commits into
hackair-project:masterfrom
frodegill:ArduinoJson6
Open

Arduino json6#5
frodegill wants to merge 5 commits into
hackair-project:masterfrom
frodegill:ArduinoJson6

Conversation

@frodegill
Copy link
Copy Markdown

ArduinoJson 6.9.0 is marked as the first 6.x stable release. Current release is 6.9.1. Add support for 6.x so we don't have to install the old 5.x library.

Comment thread hackair-v2-advanced.ino
JsonObject& json = jsonBuffer.parseObject(buf.get());
json.prettyPrintTo(Serial);
if (json.success()) {
DynamicJsonDocument jsonDoc(1024);
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about the 1024 here, but this is how it's done in the "How To Upgrade To 6.x" documentation.

Comment thread hackair-v2-advanced.ino
json["sensebox_id"] = sensebox_id;
json["osem_token"] = osem_token;

DynamicJsonDocument jsonDoc(1024);
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about the 1024 here, but this is how it's done in the "How To Upgrade To 6.x" documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant