weather forecast WIZwiki-W7500 for academy
Dependencies: Adafruit_GFX WIZnetInterface mbed
Fork of Weather_Forecast_Helloworld_WIZwiki-W7500 by
Diff: main.cpp
- Revision:
- 8:b48b8d089f5b
- Parent:
- 7:b0f039c96a1c
--- a/main.cpp Tue Feb 16 01:29:35 2016 +0000 +++ b/main.cpp Mon Mar 14 01:51:12 2016 +0000 @@ -102,7 +102,7 @@ int phy_link; printf("Wait a second...\r\n"); - uint8_t mac_addr[6] = {0x00, 0x08, 0xDC, 0xff, 0xff, 0xa0}; + uint8_t mac_addr[6] = {0x00, 0x08, 0xDC, 0xff, 0xff, 0x20}; EthernetInterface eth; @@ -135,7 +135,9 @@ * GET method, to request weather forecast */ //char http_cmd[] = "GET /data/2.5/weather?q=London,uk&appid=44db6a862fba0b067b1930da0d769e98 HTTP/1.0\n\n"; - char http_cmd[] = "GET /data/2.5/weather?q=Seoul,kr&appid=44db6a862fba0b067b1930da0d769e98 HTTP/1.0\n\n"; + //char http_cmd[] = "GET /data/2.5/weather?q=Seoul,kr&appid=44db6a862fba0b067b1930da0d769e98 HTTP/1.0\n\n"; + char http_cmd[] = "GET /data/2.5/weather?q=Seoul,kr&appid=b1b15e88fa797225412429c1c50c122a HTTP/1.0\n\n"; + //char http_cmd[] = "GET /data/2.5/weather?q=London,uk HTTP/1.0\n\n"; //char http_cmd[] = "GET /data/2.5/weather?q=Berlin,de HTTP/1.0\n\n";