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

Files at this revision

API Documentation at this revision

Comitter:
defrost
Date:
Fri Mar 25 12:36:05 2016 +0000
Parent:
8:64ebb855005c
Child:
10:fc40c56e8a3c
Commit message:
- Added some debug messages

Changed in this revision

Websocket.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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));