Lan OLED

Dependencies:   Adafruit_GFX WIZnetInterface mbed

Fork of Weather_Forecast_Helloworld_WIZwiki-W7500 by IOP

Revision:
14:4f2579fd3043
Parent:
13:6396875b2889
--- a/main.cpp	Tue Apr 18 01:42:25 2017 +0000
+++ b/main.cpp	Tue Apr 18 08:58:58 2017 +0000
@@ -68,7 +68,10 @@
     printf("Wait a second...\r\n");
     
     //--------- Have to modify the mac address-------------
-    uint8_t mac_addr[6] = {0x00, 0x08, 0xDC, 0xff, 0xff, 0x25};   
+    //                        0     1     2     3     4     5
+    uint8_t mac_addr[6] = {0x00, 0x08, 0xDC, 0xff, 0xff, 0x15};   
+    // 0~2 회사코드. 
+    
     
     eth.init(mac_addr);     //Use DHCP
     
@@ -96,7 +99,9 @@
         
         // 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=London,uk&appid=be22367918cefc57bf4b4735bcbaf052 HTTP/1.0\n\n";
+
+        // be22367918cefc57bf4b4735bcbaf052
         //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);