Websocket Hello World over an ethernet network

Dependencies:   EthernetNetIf mbed DNSResolver

Revision:
5:f34f1ae8de92
Parent:
4:e8d0d258834b
Child:
6:aa2b63dc24f3
--- a/main.cpp	Thu Sep 01 13:17:08 2011 +0000
+++ b/main.cpp	Tue Oct 25 06:57:32 2011 +0000
@@ -6,7 +6,7 @@
 
 ADXL345 accelerometer(p5, p6, p7, p8);
 
-//Here, we create a Websocket instance in 'w' (write) mode
+//Here, we create a Websocket instance in 'wo' (write) mode
 //on the 'samux' channel
 Websocket ws("ws://sockets.mbed.org/ws/samux/wo");
 
@@ -45,7 +45,7 @@
             //Here, we format the string we will be sending to the server
             //the format we are sending in is JSON
             sprintf(json_str, "{\"id\":\"wifly_acc\",\"ax\":\"%d\",\"ay\":\"%d\",\"az\":\"%d\"}", (int16_t)readings[0], (int16_t)readings[1], (int16_t)readings[2]);
-            ws.Send(json_str);
+            ws.send(json_str);
         }
     }
 }
\ No newline at end of file