AxedaGo-mbed Demo - WIZwiki_W7500 or Platform+ W5500 (WIZnet) + Sensor (Photosell), This code tested on FRDM-KL25Z, LPCXpresso8324-MAX, NUCLEO_F103RB and WIZwiki_W7500

Dependencies:   AxedaGo-mbedNXP WIZnetInterface mbed

Fork of AxedaGo-mbed_WIZnetInterface by Soohwan Kim

Revision:
9:63548379bdc4
Parent:
8:4652dbf6461d
--- a/main.cpp	Fri Jun 19 06:11:02 2015 +0000
+++ b/main.cpp	Mon Jun 22 09:12:51 2015 +0000
@@ -27,7 +27,8 @@
 
 int main() 
 {
-    uint8_t mac_addr[6] = {0x00, 0x08, 0xDC, 0x00, 0x01, 0x02}; 
+    //uint8_t mac_addr[6] = {0x00, 0x08, 0xDC, 0x00, 0x01, 0x02}; 
+    uint8_t mac_addr[6] = {0x00, 0x08, 0xDC, 0x1D, 0xFE, 0x1B}; 
     char *MODEL = "mbed";
     char *SERIAL_NUM = "input_your_serial_num"; 
     float DEADBAND = 0.015;   
@@ -56,10 +57,13 @@
         printf(" - Could not initialize Ethernet - ending\r\n");
         return 0;
     }
+
+    eth.ethernet_link();
+    printf("eth.ethernet_link() %d \r\n", eth.ethernet_link());
     
     printf("Ethernet.connecting \r\n");
     returnCode = eth.connect();
-    eth.ethernet_link();
+
     printf(" - connecting returned %d \r\n", returnCode);
     led2 = returnCode != -1 ? 0: 1;
     printf("Trying to get IP address..\r\n");