Last active
July 19, 2016 15:56
-
-
Save davidsulpy/085e7b3dfc9ed8138c2945dc61d04551 to your computer and use it in GitHub Desktop.
postBucket() function for >4 sensors
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 postBucket() | |
{ | |
Process isstreamer; | |
String newjson; | |
newjson="https://groker.initialstate.com/api/events?accessKey="+accessKey+"&bucketKey="+bucketKey; | |
newjson+= "&Sensor 1="+sensor_data[0]; | |
newjson+= "&Sensor 2="+sensor_data[1]; | |
isstreamer.begin("curl"); | |
isstreamer.addParameter(newjson); | |
// Print posted data for debug | |
Serial.print("Sending data: "); | |
Serial.println(newjson); | |
isstreamer.run(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment