wqerop

Dependencies:   ESP8266 mbed

Fork of thingspeak_LEDCONTROL by Karkhana Makerspace

Files at this revision

API Documentation at this revision

Comitter:
pratit911
Date:
Wed May 30 07:22:33 2018 +0000
Parent:
3:1722a03793c6
Commit message:
; ertyuio;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue May 22 05:02:54 2018 +0000
+++ b/main.cpp	Wed May 30 07:22:33 2018 +0000
@@ -25,7 +25,7 @@
 int ledstatus=0;
 
 //Public and private keys for phant
-char* Update_Key = "QRCE7DOPVY3I49YN";                   // Copy the read key for your channel and paste it here.
+char* Update_Key = "OPETON9L7UP3FCOP";                   // Copy the read key for your channel and paste it here.
 //char* Private_Key = "GPoWnRM60yidrB0e1pXD";
  
 //Wifi init function. Sets the module to connect to wifi accesspoint with ssid and password mentioned above
@@ -90,8 +90,8 @@
         pc.printf("No response while starting TCP connection \r\n");
     wait(1);
     
-    //create link 
-    sprintf(http_cmd,"/channels/501352/fields/1.json?api_key=%s&results=2",Update_Key);              // Forms the url for transmitting to thingspeak server. the format can be seen on thingspeak site as well
+    //create link      
+    sprintf(http_cmd,"/channels/500979/fields/1.json?api_key=%s&results=2",Update_Key);              // Forms the url for transmitting to thingspeak server. the format can be seen on thingspeak site as well
     pc.printf(http_cmd);
     
     pc.printf("******** Sending URL to wifi ********\r\n");