Created
August 20, 2015 14:03
-
-
Save bblanchon/97e45a3399c7aa0267d0 to your computer and use it in GitHub Desktop.
Reference program for JSON generator's size
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
Serial.begin(9600); | |
Serial.println("{\"sensor\":\"gps\",\"time\":1351824120,\"data\":[48.756080,2.302038]}"); | |
Serial.println("{\n \"sensor\": \"gps\",\n \"time\":1351824120,\n \"data\": [\n 48.756080,\n 2.302038\n ]\n}"); | |
} | |
void loop() { | |
// not used in this example | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment