File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ void setup() {
11
11
Serial.begin (9600 );
12
12
while (!Serial) continue ;
13
13
14
- // The JSON document
14
+ // Allocate the JSON document
15
15
//
16
16
// Inside the brackets, 200 is the RAM allocated to this document.
17
17
// Don't forget to change this value to match your requirement.
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ void setup() {
11
11
Serial.begin (9600 );
12
12
while (!Serial) continue ;
13
13
14
- // Root JSON object
14
+ // Allocate the JSON document
15
15
//
16
16
// Inside the brackets, 200 is the size of the memory pool in bytes.
17
17
// Don't forget to change this value to match your JSON document.
@@ -47,7 +47,7 @@ void setup() {
47
47
// Fetch values.
48
48
//
49
49
// 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>();
51
51
const char * sensor = root[" sensor" ];
52
52
long time = root[" time" ];
53
53
double latitude = root[" data" ][0 ];
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ void setup() {
60
60
// Fetch values.
61
61
//
62
62
// 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>();
64
64
const char * sensor = root[" sensor" ];
65
65
long time = root[" time" ];
66
66
double latitude = root[" data" ][0 ];
You can’t perform that action at this time.
0 commit comments