Akash Verma
/
ESP8266-FRDM-KL25Z-THINGSPEAK_DOWNSTREAM
ESP8266downstreaming
Revision 2:ceb216ffbbbd, committed 2020-02-12
- Comitter:
- rdverma
- Date:
- Wed Feb 12 11:56:04 2020 +0000
- Parent:
- 1:cf615fecaa49
- Commit message:
- ESP8266-FRDM-KL25Z-THINGSPEAK downstream
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Jul 02 05:25:34 2019 +0000 +++ b/main.cpp Wed Feb 12 11:56:04 2020 +0000 @@ -15,8 +15,8 @@ int timeout = 5000; //timeout for wifi commands //SSID and password for connection -#define SSID "ssid1" -#define PASS "motomoto1" +#define SSID "abc.xyz" +#define PASS "motomoto2019" void control_led(void); //Remote IP #define IP "184.106.153.149" // IP for thingspeak server. Remains same for al codes using thingspeak @@ -25,7 +25,7 @@ int ledstatus=0; //Public and private keys for phant -char* Update_Key = "N4HO4M8K6Q6CNP9P"; // Copy the read key for your channel and paste it here. +char* Update_Key = "YBGSY60REB45ZKKP"; // 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 @@ -91,7 +91,7 @@ wait(1); //create link - sprintf(http_cmd,"/channels/793656/feeds.json?api_key=%s&results=1",Update_Key); // Forms the url for transmitting to thingspeak server. the format can be seen on thingspeak site as well + sprintf(http_cmd,"/channels/722168/feeds.json?api_key=%s&results=1",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");