Last active
January 17, 2016 18:13
-
-
Save projectweekend/05e114ec1bf3843e57f9 to your computer and use it in GitHub Desktop.
This file contains 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 writeJSONToSerial(void) | |
{ | |
String jsonString = "{\"temp_f\":"; | |
jsonString += sensordata.tempF; | |
jsonString += ",\"temp_c\":"; | |
jsonString += sensordata.tempC; | |
jsonString += "}"; | |
Serial.println(jsonString); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment