Syntax
virtual int read();
ContentsIndex
PreviousUpNext
LTcpClient::read Method ()
LTcpClient Class | Example
Syntax
virtual int read();
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.

Returns

The data byte value. -1 is returned if there is no data available

 

Example
    int v = client.read();
    if (v != -1)
    {
      Serial.print((char)v);
    }
File

LTcpClient.h

Class