forked from bblanchon/ArduinoJson
Examples: Added a loop to wait for serial port to be ready (issue #156)
This commit is contained in:
@ -10,7 +10,9 @@ using namespace ArduinoJson::Internals;
|
||||
|
||||
void setup() {
|
||||
Serial.begin(9600);
|
||||
// delay(1000); <--needed for some boards (like Teensy)
|
||||
while (!Serial) {
|
||||
// wait serial port initialization
|
||||
}
|
||||
|
||||
IndentedPrint serial(Serial);
|
||||
serial.setTabSize(4);
|
||||
|
Reference in New Issue
Block a user