Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 3:c3ec6ece92f6
- Parent:
- 2:97dbf542ebee
diff -r 97dbf542ebee -r c3ec6ece92f6 main.cpp
--- 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);