Akash Verma
/
ESP8266-FRDM-KL25Z-THINGSPEAK_DOWNSTREAM
ESP8266downstreaming
Diff: main.cpp
- Revision:
- 1:cf615fecaa49
- Parent:
- 0:6817186f0ebb
- Child:
- 2:ceb216ffbbbd
--- a/main.cpp Mon Jun 03 11:54:46 2019 +0000 +++ b/main.cpp Tue Jul 02 05:25:34 2019 +0000 @@ -15,8 +15,8 @@ int timeout = 5000; //timeout for wifi commands //SSID and password for connection -#define SSID "NETGEAR63" -#define PASS "dailyhat870" +#define SSID "ssid1" +#define PASS "motomoto1" 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 = "W5FHDPB9UO357P7I"; // Copy the read key for your channel and paste it here. +char* Update_Key = "N4HO4M8K6Q6CNP9P"; // 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/499883/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/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 pc.printf(http_cmd); pc.printf("******** Sending URL to wifi ********\r\n");