thingspeak using ESP8266 wifi module
Dependencies: mbed RFIDreaderwithHC06 ESP8266
Diff: main.cpp
- Revision:
- 5:ee26bce360d0
- Parent:
- 4:c747d23ffd0e
--- 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++);