Added websocket control to Nerf Gun.

Dependencies:   EthernetInterface WebSocketClient mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
alexleversen
Date:
Mon Aug 18 16:55:44 2014 +0000
Parent:
0:c9cc3d5f6e8b
Commit message:
Updated for general use. Does not work without editing line 27 to point to ws server.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Aug 18 15:27:35 2014 +0000
+++ b/main.cpp	Mon Aug 18 16:55:44 2014 +0000
@@ -24,7 +24,7 @@
     eth.connect();
     printf("IP Address is %s\n\r", eth.getIPAddress());
  
-    Websocket ws("ws://sockets.mbed.org/ws/alexleversen/rw");
+    Websocket ws(/*LINK TO YOUR WEBSOCKET SERVER GOES HERE*/);
     ws.connect();
     char recv[6]="fire";