Created
August 20, 2015 13:55
-
-
Save bblanchon/eaa6440cc7039f4898a4 to your computer and use it in GitHub Desktop.
Reference program for JSON parser'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); | |
char json[] = | |
"{\"sensor\":\"gps\",\"time\":1351824120,\"data\":[48.756080,2.302038]}"; | |
const char* sensor = "gps"; | |
long time = 1351824120; | |
double latitude = 48.756080; | |
double longitude = 2.302038; | |
Serial.println(sensor); | |
Serial.println(json); | |
Serial.println(time); | |
Serial.println(latitude, 6); | |
Serial.println(longitude, 6); | |
} | |
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