Sending data to thingspeak
Dependencies: DHT ESP8266 mbed
Fork of temp_hum by
Diff: main.cpp
- Revision:
- 7:00c31738f232
- Parent:
- 6:fd279a17f523
- Child:
- 8:f14bdc09a319
--- a/main.cpp Sun Apr 02 13:38:06 2017 +0000 +++ b/main.cpp Sun Apr 02 13:40:35 2017 +0000 @@ -62,7 +62,7 @@ } void wifi_send(void) { - sprintf(snd,"GET http://api.thingspeak.com/update?api_key=54JPIP9GVWVX9BMV&field1=%f&field2=%f&field3=%f&field4=%f&field5=%f&field6=%f\r\n", cur, comp,temp,hum,co,pres); //Post values to thingspeak + sprintf(snd,"GET http://api.thingspeak.com/update?api_key=54JPIP9GVWVX9BMV&field1=%f&field2=%f&field3=%f&field4=%f&field5=%f&field6=%f\r\n", cur,comp,temp,hum,co,pres); //Post values to thingspeak pc.printf("%s",snd); wifi.SendCMD(snd); wifi.RcvReply(rcv, 1000);