forked from bblanchon/ArduinoJson
Examples: Added a loop to wait for serial port to be ready (issue #156)
This commit is contained in:
@ -6,6 +6,7 @@ v5.0.6
|
|||||||
|
|
||||||
* Added parameter to `DynamicJsonBuffer` constructor to set initial size (issue #152)
|
* Added parameter to `DynamicJsonBuffer` constructor to set initial size (issue #152)
|
||||||
* Fixed warning about library category in Arduino 1.6.6 (issue #147)
|
* Fixed warning about library category in Arduino 1.6.6 (issue #147)
|
||||||
|
* Examples: Added a loop to wait for serial port to be ready (issue #156)
|
||||||
|
|
||||||
v5.0.5
|
v5.0.5
|
||||||
------
|
------
|
||||||
|
@ -10,7 +10,9 @@ using namespace ArduinoJson::Internals;
|
|||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
// delay(1000); <--needed for some boards (like Teensy)
|
while (!Serial) {
|
||||||
|
// wait serial port initialization
|
||||||
|
}
|
||||||
|
|
||||||
IndentedPrint serial(Serial);
|
IndentedPrint serial(Serial);
|
||||||
serial.setTabSize(4);
|
serial.setTabSize(4);
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
// delay(1000); <--needed for some boards (like Teensy)
|
while (!Serial) {
|
||||||
|
// wait serial port initialization
|
||||||
|
}
|
||||||
|
|
||||||
StaticJsonBuffer<200> jsonBuffer;
|
StaticJsonBuffer<200> jsonBuffer;
|
||||||
|
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
// delay(1000); <--needed for some boards (like Teensy)
|
while (!Serial) {
|
||||||
|
// wait serial port initialization
|
||||||
|
}
|
||||||
|
|
||||||
StaticJsonBuffer<200> jsonBuffer;
|
StaticJsonBuffer<200> jsonBuffer;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user