WiFiNINA - client.read()

Description

Reads data from the client. If no arguments are given, it will return the next character in the buffer.

Syntax

client.read()
client.read(buffer, size);

Parameters

  • buffer: buffer to hold incoming packets (char*)
  • len: maximum size of the buffer (int)

Returns

  • b: the next character in the buffer (char)
  • size: the size of the data
  • -1: if no data is available