virtual int read( uint8_t * buf, size_t size );
virtual int read( uint8_t * buf, size_t size );
Reads the data sent from the server side and returns one single byte if there is no parameter given. If the buffer and buffer size are given, store the data in the buffer passed in.
|
Parameters |
Description |
|
uint8_t * buf |
uint8_t buffer to store the incoming data |
|
size_t size |
Buffer size in bytes |
The actual read data in bytes are returned.
>0: Total bytes read
0: There are no data to read
LTcpClient.h