Websocket Test Program for W5500 (WIZ550io) FRDM-KL25Z WIZ550io Ethernet Board.

Dependencies:   W5500Interface WebSocketClient mbed

Fork of Websocket_Ethernet_W5500 by W5500-Ethernet-Interface Makers

Websocket example using Ethernet component of WIZ550io (W5500). FRDM-KL25Z is used.

Revision:
6:5bd7bd3e1b83
Parent:
5:5f427a506928
--- a/main.cpp	Wed Jul 09 23:44:22 2014 +0000
+++ b/main.cpp	Tue Oct 21 23:28:40 2014 +0000
@@ -1,8 +1,7 @@
 #include "mbed.h"
-#include "EthernetInterfaceW5500.h"
+#include "EthernetInterface.h"
 #include "Websocket.h"
 
-
 #define _DHCP
 //#define _USE_WIZ550io
 DigitalOut myled(LED1);
@@ -24,9 +23,14 @@
     spi.frequency(7000000); // 7MHz
     wait(1); // 1 second for stable state
 #elif defined(TARGET_KL25Z)
+    Serial pc(USBTX, USBRX);
+    pc.baud(115200);
+    printf("spi init\r\n");
     SPI spi(D11, D12, D13); // mosi, miso, sclk
-    EthernetInterfaceW5500 eth(&spi, D10, PTA20);//scs(D10), nRESET(PTA20)
-
+    wait(1); // 1 second for stable state
+    EthernetInterface eth(&spi, D10, D9);//scs(D10), nRESET(PTA20)
+    printf("App Start\r\n");
+    wait(1); // 1 second for stable state
 #endif
 
 #ifndef _USE_WIZ550io