weahter seoul
Dependencies: Adafruit_GFX WIZnetInterface mbed
Fork of Weather_Forecast_Helloworld_WIZwiki-W7500 by
Diff: main.cpp
- Revision:
- 4:2b4f4db50f5b
- Parent:
- 3:246564796e88
- Child:
- 5:b63ed9e85c81
--- a/main.cpp Mon Sep 07 04:10:41 2015 +0000 +++ b/main.cpp Thu Dec 10 06:27:45 2015 +0000 @@ -108,7 +108,7 @@ int phy_link; printf("Wait a second...\r\n"); - uint8_t mac_addr[6] = {0x00, 0x08, 0xDC, 0x03, 0x04, 0x02}; + uint8_t mac_addr[6] = {0x00, 0x08, 0xDC, 0xff, 0xff, 0x17}; //7500맥 구매 주 EthernetInterface eth; @@ -140,7 +140,7 @@ /* * GET method, to request weather forecast */ - char http_cmd[] = "GET /data/2.5/weather?q=Seoul,kr HTTP/1.0\n\n"; + char http_cmd[] = "GET /data/2.5/weather?q=weather?q=Seryui-dong,Kr&appid=2de143494c0b295cca9337e1e96b00e0 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"; sock.send_all(http_cmd, sizeof(http_cmd)-1);