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.
Dependencies: 4DGL-uLCD-SE EthernetInterface NTPClient PinDetect SDFileSystem mbed-rtos mbed wave_player HTTPClient
Fork of 4180_Final_Project_WaveProblems by
Revision 9:fbb5f22fc299, committed 2016-04-24
- Comitter:
- agamemaker
- Date:
- Sun Apr 24 19:39:01 2016 +0000
- Parent:
- 8:4750e5fd45c1
- Commit message:
- kgh
Changed in this revision
| HTTPClient.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/HTTPClient.lib Sun Apr 24 18:13:23 2016 +0000 +++ b/HTTPClient.lib Sun Apr 24 19:39:01 2016 +0000 @@ -1,1 +1,1 @@ -https://mbed.org/users/donatien/code/HTTPClient/#1f743885e7de +https://mbed.org/users/donatien/code/HTTPClient/#277279a1891e
--- a/main.cpp Sun Apr 24 18:13:23 2016 +0000
+++ b/main.cpp Sun Apr 24 19:39:01 2016 +0000
@@ -26,6 +26,8 @@
// Parameters
char* time_domain_name = "0.uk.pool.ntp.org";
+//char* weth_domain_name = "http://weather.yahooapis.com/forecastrss?w=2502265";
+//char* weth_domain_name = "https://query.yahooapis.com/v1/public/yql?q=select%20item.condition%20from%20weather.forecast%20where%20woeid%20in%20%28select%20woeid%20from%20geo.places%281%29%20where%20text%3D%22atlanta%2C%20ga%22%29&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys";
char* weth_domain_name = "https://query.yahooapis.com/v1/public/yql?q=select%20item.condition%20from%20weather.forecast%20where%20woeid%20in%20%28select%20woeid%20from%20geo.places%281%29%20where%20text%3D%22atlanta%2C%20ga%22%29&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys";
int port_number = 123;
@@ -189,7 +191,7 @@
uLCD.printf("IP address is \n%s\n\n",eth.getIPAddress());
Thread::wait(1000);
getWeather();
- wait(5);
+ wait(500);
// Read time from server
uLCD.printf("Reading time...\n\r");
ntp_client.setTime(time_domain_name, port_number);
