Question: Set up the GPRS shield for Thingspeak?

Product:GPRS Shield

Question description: viewtopic.php?f=23&t=5588

Bounty: +10 points & +3~5 dollars coupon

I can’t test this since I don’t have a GPRS shield, but to send data to Thingspeak you need to send a string to the Thingspeak server using either GET or POST method. More info here: community.thingspeak.com/documentation/api/

Please try this example based on GET method: it’s just the part of the code that sends the data.

Please tell me if it works!

[code]char *API = “YOUR_API_KEY_HERE”;
char *value1 = “123”;
char *value2 = “456”;
char finalStr[50]; //modify this accordingly to the length of your string

sprintf(finalStr, “GET /update?api_key=%s&field1=%s&field2=%s”, API, value1, value2);

Serial.println("AT+CIPSTART=“tcp”,“api.thingspeak.com”,“80"”);
delay(2000);
Serial.println(“AT+CIPSEND”);
delay(2000);

Serial.println(finalStr);

delay(2000);

Serial.println((char)26); //send termination character

Serial.println(“AT+CIPCLOSE”);[/code]

I have the answer and have tested it to prove it works. Has this bounty been claimed?