Syntax
virtual int read(
    uint8_t * buf, 
    size_t size
);
ContentsIndex
PreviousUpNext
LTcpClient::read Method (uint8_t *, size_t)
LTcpClient Class
Syntax
virtual int read(
    uint8_t * buf, 
    size_t size
);
Description

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
Parameters 
Description 
uint8_t * buf 
uint8_t buffer to store the incoming data
 
size_t size 
Buffer size in bytes
 
Returns

The actual read data in bytes are returned. 

>0: Total bytes read 

0: There are no data to read

File

LTcpClient.h

Class