MQTT client test with W5200 ethernet shield

Dependents:   IBMIoTClientEthernetExample_W5200

Fork of W5500Interface by W5500-Ethernet-Interface Makers

Revision:
1:8f4374f932b4
Parent:
0:e11e8793c3ce
Child:
5:8aefaef88f79
--- a/EthernetInterface.cpp	Wed Aug 20 00:28:37 2014 +0000
+++ b/EthernetInterface.cpp	Wed Aug 20 01:55:36 2014 +0000
@@ -1,4 +1,30 @@
 // EthernetInterface for W5500 2014/8/20
+/*
+// sample usgae. 
+// copy below code block to main code.
+
+#if defined(TARGET_LPC1114)
+    SPI spi(dp2, dp1, dp6); // mosi, miso, sclk
+    EthernetInterface eth(&spi, dp25, dp26); // spi, cs, reset
+    wait(1); // 1 second for stable state
+#elif defined(TARGET_LPC1768)
+    SPI spi(p11, p12, p13); // mosi, miso, sclk
+    EthernetInterface eth(&spi, p14, p15); // spi, cs, reset
+    wait(1); // 1 second for stable state
+#elif defined(TARGET_LPC11U68)
+    SPI spi(P0_9, P0_8, P1_29); // mosi, miso, sclk
+    EthernetInterface eth(&spi, P0_2, P1_28);//, nRESET(p9); // reset pin is dummy, don't affect any pin of WIZ550io
+    spi.format(8,0); // 8bit, mode 0
+    spi.frequency(7000000); // 7MHz
+    wait(1); // 1 second for stable state
+#endif
+
+    eth.init(); //Use DHCP
+    dbg.printf("init\r\n");
+    eth.connect();
+    dbg.printf("IP address: %s\r\n", eth.getIPAddress());
+
+*/
 
 #include "EthernetInterface.h"
 #include "DHCPClient.h"