Arduino Function: YunClient.peek

Description

Read a byte from the file without advancing to the next one. That is, successive calls to peek() will return the same value, as will the next call to read().

Syntax

client.peek()

Parameters

  • client : the named instance of YunClient

Returns

int the first byte of incoming data available (or -1 if no data is available)


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc