Rajas Chitanvis
/
ESP8266_test
thingspeak using ESP8266 wifi module
Revision 5:ee26bce360d0, committed 2019-04-19
- Comitter:
- rajas1812
- Date:
- Fri Apr 19 20:22:31 2019 +0000
- Parent:
- 4:c747d23ffd0e
- Commit message:
- Thingspeak using ESP8266 wifi module
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r c747d23ffd0e -r ee26bce360d0 main.cpp --- a/main.cpp Mon Apr 15 20:49:33 2019 +0000 +++ b/main.cpp Fri Apr 19 20:22:31 2019 +0000 @@ -3,10 +3,10 @@ #include "math.h" #include <string> -#define APIKEY MXLNXNNNJ4MDKNJY //Put "Write key" of your channel in thingspeak.com +#define APIKEY XE2W5EIXWN6LA234 //Put "Write key" of your channel in thingspeak.com #define IP "184.106.153.149" // IP Address of "api.thingspeak.com\" -#define WIFI_SSID "iPhone" -#define WIFI_PASS "12345abc" +#define WIFI_SSID "RajasiPhone" +#define WIFI_PASS "youcantguessmypassword" 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=MXLNXNNNJ4MDKNJY&field1=%f&field2=%f\r\n",i,j); + sprintf(snd,"GET https://api.thingspeak.com/update?key=XE2W5EIXWN6LA234&field1=%f&field2=%f\r\n",i,j); int i=0; for(i=0;snd[i]!='\0';i++);