Created
October 16, 2012 09:00
-
-
Save biskandar/3898166 to your computer and use it in GitHub Desktop.
Reading Arduino's Analog Pins with JSON Protocol by using WiFi Shield 2012101604
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 *jsonAnalogs() { | |
aJsonObject *jsonRoot = aJson.createObject() ; | |
aJson.addNumberToObject( jsonRoot , "millis" , (int) millis() ) ; | |
aJsonObject *jsonAnalogs = aJson.createIntArray( arrAnalogs , maxAnalogs ) ; | |
aJson.addItemToObject( jsonRoot , "analogs" , jsonAnalogs ) ; | |
return jsonRoot ; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment