Program code for the project

Dependencies:   4DGL-uLCD-SE SDAlarm mbed SDFileSystem SoundAPI mbed-rtos

Revision:
2:15ba42aea6c7
Parent:
1:049d9c16aa35
Child:
3:01d4b03ade7c
diff -r 049d9c16aa35 -r 15ba42aea6c7 main.cpp
--- a/main.cpp	Mon Dec 11 22:58:04 2017 +0000
+++ b/main.cpp	Wed Dec 13 00:57:55 2017 +0000
@@ -46,8 +46,8 @@
 int  count,ended,timeout;
 char buf[2024];
 char snd[1024];
-char ssid[32] = "Ben’s iPhone";     // enter WiFi router ssid inside the quotes
-char pwd [32] = "bensiphonepassword96"; // enter WiFi router password inside the quotes
+char ssid[32] = "";     // enter WiFi router ssid inside the quotes
+char pwd [32] = ""; // enter WiFi router password inside the quotes
 bool timeReady = false;
 
 char curTime[20];
@@ -335,7 +335,7 @@
     getreply();
     wait(1);
     
-    strcpy(snd, "sk:send(\"GET /v2/get-time-zone?key=ONL9KGITMG1G&format=json&by=zone&zone=America/New_York HTTP/1.1\\r\\nHost: api.timezonedb.com\\r\\nConnection: keep-alive\\r\\nAccept: */*\\r\\n\\r\\n\")\r\n");
+    strcpy(snd, "sk:send(\"GET /v2/get-time-zone?key=[API key here]&format=json&by=zone&zone=America/New_York HTTP/1.1\\r\\nHost: api.timezonedb.com\\r\\nConnection: keep-alive\\r\\nAccept: */*\\r\\n\\r\\n\")\r\n");
     SendCMD();
     timeout=17;
     getreply();