Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
postBucket() function for >4 sensors
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