The Analog value is updated to the server of ponniyin selvan

Dependencies:   EthernetInterface WebSocketClient mbed-rtos mbed

Fork of Websocket_Ethernet_HelloWorld by Mbed

Files at this revision

API Documentation at this revision

Comitter:
samux
Date:
Fri Aug 17 16:20:13 2012 +0000
Parent:
0:1b0dc7de9db7
Child:
2:00da1457c871
Commit message:
change hello world program

Changed in this revision

WebSocketClient.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/WebSocketClient.lib	Fri Aug 10 11:15:53 2012 +0000
+++ b/WebSocketClient.lib	Fri Aug 17 16:20:13 2012 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/samux/code/WebSocketClient/#10b6eaafc2da
+http://mbed.org/users/samux/code/WebSocketClient/#9589afa4712e
--- a/main.cpp	Fri Aug 10 11:15:53 2012 +0000
+++ b/main.cpp	Fri Aug 17 16:20:13 2012 +0000
@@ -1,26 +1,21 @@
-#include "mbed.h"
-#include "EthernetInterface.h"
-#include "Websocket.h"
-
-
-int main() {
-    char recv[30];
-
-    EthernetInterface eth;
-    eth.init(); //Use DHCP
-    eth.connect();
-    printf("IP Address is %s\n\r", eth.getIPAddress());
-
-    Websocket ws("ws://sockets.mbed.org:443/ws/demo/rw");
-    ws.connect();
-
-    while (1) {
-        int res = ws.send("WebSocket Hello World!");
-
-        if (ws.read(recv)) {
-            printf("rcv: %s\r\n", recv);
-        }
-
-        wait(0.1);
-    }
-}
+#include "mbed.h"
+#include "EthernetInterface.h"
+#include "Websocket.h"
+ 
+ 
+int main() {
+    char recv[30];
+ 
+    EthernetInterface eth;
+    eth.init(); //Use DHCP
+    eth.connect();
+    printf("IP Address is %s\n\r", eth.getIPAddress());
+ 
+    Websocket ws("ws://sockets.mbed.org:443/ws/demo/wo");
+    ws.connect();
+ 
+    while (1) {
+        ws.send("WebSocket Hello World over Ethernet");
+        wait(1.0);
+    }
+}
\ No newline at end of file