Websocket demo for app board by C. Styles with updated libraries. DHCP service and a network cable is required.
Dependencies: EthernetInterface LM75B MMA7660 WebSocketClient mbed-rtos mbed
Fork of app-board-Ethernet-Websocket by
Diff: main.cpp
- Revision:
- 3:26f41c921c2d
- Parent:
- 2:1fae595547d5
diff -r 1fae595547d5 -r 26f41c921c2d main.cpp --- a/main.cpp Fri Feb 08 12:46:02 2013 +0000 +++ b/main.cpp Tue Oct 01 20:17:19 2013 +0000 @@ -20,7 +20,8 @@ EthernetInterface eth; eth.init(); //Use DHCP - eth.connect(); + wait(2); + eth.connect(60000); printf("IP Address is %s\n\r", eth.getIPAddress()); // See the output on http://sockets.mbed.org/app-board/viewer