Syntax
virtual int available();
ContentsIndex
PreviousUpNext
LTcpClient::available Method
LTcpClient Class | Example
Syntax
virtual int available();
Description

Queries if there are incoming data from server side and returns the number of byte available for read after connecting to a server.

Returns

0: There is no data available for read

1: There is data available for read. (The current implementation is not 

compatible with the Arduino. A compatible implementation would mean 

that the return value is the size of the data available for read, i.e. 

>0: Size of the data available for read, in bytes) 

 

Example
    void loop() {
        // if there are incoming bytes available
        // from the server, read them and print them:
        if (client.available()) {
              char c = client.read();
              Serial.print(c);
    }
File

LTcpClient.h

Class