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
Diff: Websocket.h
- Revision:
- 25:4a98a3b83b87
- Parent:
- 23:0d7b33cd11f9
diff -r d2c00e47527c -r 4a98a3b83b87 Websocket.h --- a/Websocket.h Wed Aug 31 10:03:43 2016 +0000 +++ b/Websocket.h Tue Oct 04 16:46:59 2016 +0000 @@ -104,9 +104,11 @@ * * @param message pointer to the string to be read (null if drop frame) * - * @return true if a websocket frame has been read + * @return 1 if a websocket frame has been read + * @return 0 if a websocket frame could not be read + * @return -1 if the server connection is closed */ - bool readmsg(char * message); + int readmsg(char * message); /** * To see if there is a websocket connection active