8000 Minor changes in the examples · java64/ArduinoJson@393f352 · GitHub
[go: up one dir, main page]

Skip to content

Commit 393f352

Browse files
committed
Minor changes in the examples
1 parent e86eb0c commit 393f352

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/JsonGeneratorExample/JsonGeneratorExample.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ void setup() {
1111
Serial.begin(9600);
1212
while (!Serial) continue;
1313

14-
// The JSON document
14+
// Allocate the JSON document
1515
//
1616
// Inside the brackets, 200 is the RAM allocated to this document.
1717
// Don't forget to change this value to match your requirement.

examples/JsonParserExample/JsonParserExample.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ void setup() {
1111
Serial.begin(9600);
1212
while (!Serial) continue;
1313

14-
// Root JSON object
14+
// Allocate the JSON document
1515
//
1616
// Inside the brackets, 200 is the size of the memory pool in bytes.
1717
// Don't forget to change this value to match your JSON document.
@@ -47,7 +47,7 @@ void setup() {
4747
// Fetch values.
4848
//
4949
// Most of the time, you can rely on the implicit casts.
50-
// In other case, you can do doc["time"].as<long>();
50+
// In other case, you can do root["time"].as<long>();
5151
const char* sensor = root["sensor"];
5252
long time = root["time"];
5353
double latitude = root["data"][0];

examples/MsgPackParser/MsgPackParser.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void setup() {
6060
// Fetch values.
6161
//
6262
// Most of the time, you can rely on the implicit casts.
63-
// In other case, you can do doc["time"].as<long>();
63+
// In other case, you can do root["time"].as<long>();
6464
const char* sensor = root["sensor"];
6565
long time = root["time"];
6666
double latitude = root["data"][0];

0 commit comments

Comments
 (0)
0