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:
- 3:9589afa4712e
- Parent:
- 0:10b6eaafc2da
- Child:
- 4:466f90b7849a
diff -r b390f29fb5fa -r 9589afa4712e Websocket.h --- a/Websocket.h Mon Aug 13 09:37:35 2012 +0000 +++ b/Websocket.h Wed Aug 15 16:24:20 2012 +0000 @@ -137,8 +137,8 @@ TCPSocketConnection socket; - int read(char * buf, int len, bool block = true); - int write(char * buf, int len, uint32_t timeout=5000); + int read(char * buf, int len, int min_len = -1); + int write(char * buf, int len); }; #endif