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:
27:bbe2b90ebd3c
Parent:
26:e13e6b11b780
Child:
28:33ea48ed24ca
--- a/Websocket.h	Sun May 21 21:32:17 2017 +0000
+++ b/Websocket.h	Tue May 23 14:58:56 2017 +0000
@@ -75,6 +75,7 @@
         */
         Websocket(char * url, Serial* infoMessages);
         Websocket(Serial* infoMessages);
+        Websocket(void);
         void Initialize(char * url);
         
         /** 
@@ -135,6 +136,8 @@
         * Serial port for debug messages:
         */
         static Serial* SerialCommPort;
+        
+        void SetSerialPort(Serial * scp);
 
     private:
 
@@ -145,6 +148,7 @@
         int sendMask(char * msg);
         int readChar(char * pC, bool block = true);
         
+        
         char scheme[8];
         uint16_t port;
         char host[32];