Websocket Hello World over a wifi network
Dependencies: EthernetNetIf mbed DNSResolver
Diff: main.cpp
- Revision:
- 3:a1ea35e2c7b3
- Parent:
- 2:e7fba3d516b5
- Child:
- 4:145755bbff90
--- a/main.cpp Fri Aug 26 13:32:11 2011 +0000 +++ b/main.cpp Tue Aug 30 08:43:41 2011 +0000 @@ -10,11 +10,11 @@ //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", "bananna2", true); +Wifly wifly(p9, p10, p21, "mbed", "mbedapm2011", true); //Here, we create a Websocket instance in 'w' (write) mode //on the 'samux' channel -Websocket ws("ws://sockets.mbed.org:444/mbed_demo/w/samux", &wifly); +Websocket ws("ws://sockets.mbed.org/ws/w/samux", &wifly); int main() { char json_str[100];