The Analog value is updated to the server of ponniyin selvan

Dependencies:   EthernetInterface WebSocketClient mbed-rtos mbed

Fork of Websocket_Ethernet_HelloWorld by Mbed

main.cpp

Committer:
samux
Date:
2012-08-17
Revision:
1:1c1802ec42a2
Parent:
0:1b0dc7de9db7
Child:
3:9bd22e5386cd

File content as of revision 1:1c1802ec42a2:

#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);
    }
}