Revised to prevent DHCPClient::discover from hanging.

Fork of WIZ820ioInterface by ban4jp -

Revision:
9:c1722862c13b
Parent:
6:c466db1cd20b
--- a/WIZ820ioInterface.cpp	Tue Feb 04 03:20:06 2014 +0000
+++ b/WIZ820ioInterface.cpp	Fri Aug 15 19:53:25 2014 +0000
@@ -82,11 +82,11 @@
 
 int WIZ820ioInterface::IPrenew(int timeout_ms)
 {
-//    printf("DHCP Started, waiting for IP...\n");  
+    printf("DHCP Started, waiting for IP...\n");  
     DHCPClient dhcp;
     int err = dhcp.setup(timeout_ms);
     if (err == (-1)) {
-//        printf("Timeout.\n");
+        printf("Timeout.\n");
         return -1;
     }
 //    printf("Connected, IP: %d.%d.%d.%d\n", dhcp.yiaddr[0], dhcp.yiaddr[1], dhcp.yiaddr[2], dhcp.yiaddr[3]);