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
Revision 21:420b83755885, committed 2016-08-05
- Comitter:
- defrost
- Date:
- Fri Aug 05 13:31:48 2016 +0000
- Parent:
- 20:ae675d49fa7f
- Child:
- 22:d2c00e47527c
- Child:
- 23:0d7b33cd11f9
- Commit message:
- - Debug on
Changed in this revision
Websocket.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Websocket.cpp Tue Jun 28 16:22:40 2016 +0000 +++ b/Websocket.cpp Fri Aug 05 13:31:48 2016 +0000 @@ -3,7 +3,7 @@ #define MAX_TRY_WRITE 20 #define MAX_TRY_READ 10 -// #define DEBUG +#define DEBUG #define WARNMESSAGES #define ERRMESSAGES #define INFOMESSAGES @@ -48,6 +48,7 @@ void Websocket::setBaud(int baudrate){ socket.setBaud(baudrate); + DBG("Baud Rate set to: %d", baudrate); return; }