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.cpp
- Revision:
- 21:420b83755885
- Parent:
- 20:ae675d49fa7f
- Child:
- 22:d2c00e47527c
- Child:
- 23:0d7b33cd11f9
diff -r ae675d49fa7f -r 420b83755885 Websocket.cpp --- 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; }