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:
15:9df4ffc6ce48
Parent:
13:152b70450615
Child:
23:0d7b33cd11f9
--- a/Websocket.h	Thu Mar 31 20:38:54 2016 +0000
+++ b/Websocket.h	Fri Apr 01 00:56:01 2016 +0000
@@ -76,7 +76,13 @@
         Websocket(char * url);
         Websocket();
         void Initialize(char * url);
-
+        
+        /** 
+        * Sets the baudrate of the serial port used to communicate with the ethernet/wifi adapter
+        * @param baudrate The baudrate that the connection should be set to. Valid values are: 2400, 4800, 9600, 19200, 38400, 115200, 230400, 460800, 921600 do NOT go above 230400
+        */
+        void setBaud(int baudrate);
+        
         /**
         * Connect to the websocket url
         *