ESP8266, FRDM K64F, Thingspeak

Dependencies:   mbed ESP8266

Files at this revision

API Documentation at this revision

Comitter:
dewantkatare
Date:
Mon Apr 15 20:49:33 2019 +0000
Parent:
3:164296bb4985
Commit message:
ESP8266 WIFI

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sat May 06 21:17:22 2017 +0000
+++ b/main.cpp	Mon Apr 15 20:49:33 2019 +0000
@@ -3,10 +3,10 @@
 #include "math.h"
 #include <string>
 
-#define APIKEY E3AASCJVE2KQDD3V    //Put "Write key" of your channel in thingspeak.com 
+#define APIKEY MXLNXNNNJ4MDKNJY    //Put "Write key" of your channel in thingspeak.com 
 #define IP "184.106.153.149"       // IP Address of "api.thingspeak.com\"
-#define WIFI_SSID "Redmi"
-#define WIFI_PASS "akash12345"
+#define WIFI_SSID "iPhone"
+#define WIFI_PASS "12345abc"
 
 Serial pc(USBTX,USBRX);
 
@@ -105,7 +105,7 @@
     pc.printf("R\r\n%s",rcv);
     wait(1);
     
-    sprintf(snd,"GET https://api.thingspeak.com/update?key=E3AASCJVE2KQDD3V&field1=%f&field2=%f\r\n",i,j);
+    sprintf(snd,"GET https://api.thingspeak.com/update?key=MXLNXNNNJ4MDKNJY&field1=%f&field2=%f\r\n",i,j);
     
     int i=0;
     for(i=0;snd[i]!='\0';i++);