Delta / Mbed 2 deprecated NNN40_Websocket

Dependencies:   WIFI_API_32kRAM WebSocketClient mbed

Revision:
0:47ec083185d0
Child:
1:610f3dc5679e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Oct 07 05:16:10 2015 +0000
@@ -0,0 +1,33 @@
+#include "mbed.h"
+#include "EthernetInterface.h"
+#include "Websocket.h"
+ 
+#include "WIFIDevice.h"
+ 
+WIFIDevice wifi;
+Serial pc(USBTX, USBRX);
+
+int main() {
+    char recv[30];
+ 
+    pc.baud(115200);
+    pc.printf("Init...\n");
+           
+    EthernetInterface eth;
+    eth.init(); //Use DHCP
+
+    // set given SSID and PW as the highest priority  
+    wifi.setNetwork("Tsungta_iPhone", "icq87001", 0);
+    
+    eth.connect(40000);
+    pc.printf("IP Address:%s\n",eth.getIPAddress());
+    pc.printf("MAC Address:%s\n",eth.getMACAddress());
+ 
+    Websocket ws("ws://172.20.10.11:8888/ws");
+    ws.connect();
+ 
+    while (1) {
+        ws.send("WebSocket Hello World over Ethernet");
+        wait(1.0);
+    }
+}
\ No newline at end of file