Created
October 8, 2012 12:25
-
-
Save biskandar/3852249 to your computer and use it in GitHub Desktop.
Simplified webserver module using Webduino library 2012100804
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
aJsonObject *jsonResponse( char *statusCode , char *statusDesc ) { | |
aJsonObject *jsonRoot = aJson.createObject() ; | |
aJson.addNumberToObject( jsonRoot , "millis" , (int) millis() ) ; | |
aJson.addStringToObject( jsonRoot , "status-code" , statusCode ) ; | |
aJson.addStringToObject( jsonRoot , "status-desc" , statusDesc ) ; | |
return jsonRoot ; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment