init

Dependencies:   WIZnet_Library mbed

Fork of W5500HelloWorld by Ganesh Gore

Files at this revision

API Documentation at this revision

Comitter:
ganeshgore
Date:
Sat Jun 06 15:37:41 2015 +0000
Parent:
1:421fd0a7b5d7
Commit message:
initit;

Changed in this revision

WIZnet_Library.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/WIZnet_Library.lib	Sat Jun 06 14:31:33 2015 +0000
+++ b/WIZnet_Library.lib	Sat Jun 06 15:37:41 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/WIZnet/code/WIZnet_Library/#d4a7d43fb16f
+http://developer.mbed.org/users/ganeshgore/code/WIZnet_Library/#d4a7d43fb16f
--- a/main.cpp	Sat Jun 06 14:31:33 2015 +0000
+++ b/main.cpp	Sat Jun 06 15:37:41 2015 +0000
@@ -1,7 +1,7 @@
 #include "mbed.h"
 #include "WIZnetInterface.h"
 
-#define USE_DHCP    0
+#define USE_DHCP    1
 
 #define LOOPBACKPORT    5000
 
@@ -25,7 +25,7 @@
     
     // set these to match the mac address on the Arduino Ethernet Shield
     mac[0] = 0x90; mac[1] = 0xa2; mac[2] = 0xda; 
-    mac[3] = 0x0f; mac[4] = 0x0e; mac[5] = 0x63;  // 90:a2:da:0f:0e:63
+    mac[3] = 0x0f; mac[4] = 0x0e; mac[5] = 0x07;  // 90:a2:da:0f:0e:63
     
     
     
@@ -60,7 +60,7 @@
             pc.printf("Error ethernet.init() - ret = %d\r\n", ret);
             exit(0);
         }
-        
+        while(1);
         TCPSocketServer server;
         server.bind(LOOPBACKPORT);
         server.listen();