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

Files at this revision

API Documentation at this revision

Comitter:
embeddist
Date:
Mon Jun 22 09:12:51 2015 +0000
Parent:
8:4652dbf6461d
Commit message:
tested dhcp client and ethernet_link

Changed in this revision

WIZnetInterface.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/WIZnetInterface.lib	Fri Jun 19 06:11:02 2015 +0000
+++ b/WIZnetInterface.lib	Mon Jun 22 09:12:51 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/embeddist/code/WIZnetInterface/#2101ab5ee40f
+http://mbed.org/users/embeddist/code/WIZnetInterface/#24a9f2df2145
--- 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");