Akash Verma
/
ESP8266-FRDM-KL25Z-THINGSPEA_Upstream
potentiometer and LDR sensor Data send to the cloud server.
Revision 3:c3ec6ece92f6, committed 2020-02-12
- Comitter:
- rdverma
- Date:
- Wed Feb 12 11:18:48 2020 +0000
- Parent:
- 2:97dbf542ebee
- Commit message:
- potentiometer and ldr data to the cloud server.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun Dec 03 13:10:28 2017 +0000 +++ b/main.cpp Wed Feb 12 11:18:48 2020 +0000 @@ -17,8 +17,8 @@ int timeout = 8000; //timeout for wifi commands //SSID and password for connection -#define SSID "Tenda_43DA50" -#define PASS "Karkhana" +#define SSID "ssid1" +#define PASS "motomoto1" //Remote IP #define IP "184.106.153.149" // 52.202.122.57 @@ -27,12 +27,11 @@ float litvalue = 0; //Update key for thingspeak -char* Update_Key = "P2GMSKA9NY7KV0LW"; +char* Update_Key = "AN51JBJDF9WYOLEA"; //Wifi init function void wifi_initialize(void) { - pc.printf("******** Resetting wifi module ********\r\n"); wifi.Reset(); @@ -50,7 +49,6 @@ else pc.printf("No response while setting mode. \r\n"); - pc.printf("******** Joining network with SSID and PASS ********\r\n"); wifi.Join(SSID, PASS); if (wifi.RcvReply(resp, timeout)) @@ -58,7 +56,6 @@ else pc.printf("No response while connecting to network \r\n"); - pc.printf("******** Getting IP and MAC of module ********\r\n"); wifi.GetIP(resp); if (wifi.RcvReply(resp, timeout)) @@ -66,7 +63,6 @@ else pc.printf("No response while getting IP \r\n"); - pc.printf("******** Setting WIFI UART passthrough ********\r\n"); wifi.setTransparent(); if (wifi.RcvReply(resp, timeout)) @@ -75,7 +71,6 @@ pc.printf("No response while setting wifi passthrough. \r\n"); wait(1); - pc.printf("******** Setting single connection mode ********\r\n"); wifi.SetSingle(); wifi.RcvReply(resp, timeout);
--- a/mbed.bld Sun Dec 03 13:10:28 2017 +0000 +++ b/mbed.bld Wed Feb 12 11:18:48 2020 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/f9eeca106725 \ No newline at end of file +https://os.mbed.com/users/mbed_official/code/mbed/builds/5aab5a7997ee \ No newline at end of file