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 - Added SerialCommPort

Fork of WebSocketClient by Damien Frost

Revision:
29:33d77a538611
Parent:
28:33ea48ed24ca
--- a/Websocket.h	Wed May 24 18:33:58 2017 +0000
+++ b/Websocket.h	Tue Aug 22 11:04:31 2017 +0000
@@ -110,6 +110,17 @@
         * @return -1 if the server connection is closed
         */
         int readmsg(char * message);
+        
+        /**
+        * Read a binary websocket message
+        *
+        * @param message pointer to the string to be read (null if drop frame)
+        *
+        * @return number of bytes read
+        * @return 0 if a websocket frame could not be read
+        * @return -1 if the server connection is closed
+        */
+        int readBytes(char * bytes);
 
         /**
         * To see if there is a websocket connection active