Websocket Hello World over a wifi network

Dependencies:   EthernetNetIf mbed DNSResolver

Files at this revision

API Documentation at this revision

Comitter:
samux
Date:
Thu Sep 01 13:16:18 2011 +0000
Parent:
4:145755bbff90
Child:
6:b9bf734842db
Commit message:

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Aug 30 16:43:53 2011 +0000
+++ b/main.cpp	Thu Sep 01 13:16:18 2011 +0000
@@ -9,12 +9,12 @@
 
 //Here, we create an instance, with pins 9 and 10 connecting to the 
 //WiFly's TX and RX pins, and pin 21 to RESET. We are connecting to the 
-//NETGEAR network, password bananna2, and we are using WPA.
-Wifly wifly(p9, p10, p21, "mbed", "mbedapm2011", true);
+//"mbed" network, password "password", and we are using WPA.
+Wifly wifly(p9, p10, p21, "mbed", "password", true);
 
 //Here, we create a Websocket instance in 'w' (write) mode
 //on the 'samux' channel
-Websocket ws("ws://sockets.mbed.org/ws/wo/samux", &wifly);
+Websocket ws("ws://sockets.mbed.org/ws/samux/wo", &wifly);
 
 int main() {
     char json_str[100];