wave cancel
Dependencies: 4DGL-uLCD-SE EthernetInterface HTTPClient NTPClient PinDetect SDFileSystem mbed-rtos mbed wave_player
Fork of 4180_Final_Project by
Diff: main.cpp
- Revision:
- 9:fbb5f22fc299
- Parent:
- 8:4750e5fd45c1
- Child:
- 10:6b27fafad047
--- 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);