Rajas Chitanvis
/
ESP8266_test
thingspeak using ESP8266 wifi module
Diff: main.cpp
- Revision:
- 4:c747d23ffd0e
- Parent:
- 3:164296bb4985
- Child:
- 5:ee26bce360d0
diff -r 164296bb4985 -r c747d23ffd0e main.cpp --- 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++);