Simple websocket client based on the original with a few added features such as: - setBaud() - set the baud rate for the communication - Initialize() - mimics the constructor - chaged read() to readmsg() to avoid confusion with other functions

Dependents:   IoT_Ex BatteryModelTester BatteryModelTester

Fork of WebSocketClient by Samuel Mokrani

Revision:
9:da7c2b9480c5
Parent:
8:64ebb855005c
Child:
10:fc40c56e8a3c
--- a/Websocket.cpp	Fri Mar 25 11:15:11 2016 +0000
+++ b/Websocket.cpp	Fri Mar 25 12:36:05 2016 +0000
@@ -122,7 +122,7 @@
         wait(0.2);
         return false;
     }
-
+    pc.printf("TCP/IP Connection established, upgrading protocol...\n\r");
     // sent http header to upgrade to the ws protocol
     sprintf(cmd, "GET %s HTTP/1.1\r\n", path);
     write(cmd, strlen(cmd));