Added JsonPrintable.prettyPrintTo(Print&)

This commit is contained in:
Benoit Blanchon committed 2014-08-25 11:39:04 +02:00
1 parent 3d322fdb28
commit f7aa0f89e3
3 files changed
+11

No files matched your search

@@ -21,6 +21,9 @@ void setup()
root["data"] = array;
Serial.print(root); // {"sensor":"gps","time":1351824120,"data":[48.756080,2.302038]}
Serial.println();
root.prettyPrintTo(Serial); // same string indented
}
void loop()