ggrd
Dependencies: Adafruit_GFX WIZnetInterface mbed
Fork of Weather_Forecast_Helloworld_WIZwiki-W7500 by
Diff: main.cpp
- Revision:
- 18:15656f3001fd
- Parent:
- 17:bf1228469a6c
--- a/main.cpp Thu Jun 15 05:06:26 2017 +0000 +++ b/main.cpp Mon Nov 27 05:32:52 2017 +0000 @@ -20,7 +20,7 @@ TCPSocketConnection sock; -// LED desplay functions +// LED display functions void clean(){ rled = 0; gled = 0; bled = 0; } @@ -95,8 +95,8 @@ // GET method, to request weather forecast - //char http_cmd[] = "GET /data/2.5/weather?q=Seoul,kr&appid=a0ca47dd7f6066404629b3e1ad728981 HTTP/1.0\n\n"; - char http_cmd[] = "GET /data/2.5/weather?q=London,uk&appid=a0ca47dd7f6066404629b3e1ad728981 HTTP/1.0\n\n"; + char http_cmd[] = "GET /data/2.5/weather?q=Seoul,kr&appid=a0ca47dd7f6066404629b3e1ad728981 HTTP/1.0\n\n"; + //char http_cmd[] = "GET /data/2.5/weather?q=London,us&appid=a0ca47dd7f6066404629b3e1ad728981 HTTP/1.0\n\n"; //char http_cmd[] = "GET /data/2.5/weather?q=Berlin,de&appid=a0ca47dd7f6066404629b3e1ad728981 HTTP/1.0\n\n"; sock.send_all(http_cmd, sizeof(http_cmd)-1); @@ -198,7 +198,7 @@ /* * everytime in delay, request weather forecast */ - wait(20.0); + wait(40.0); };