Arduino Function: WiFiUDP.peek

Description

This method reads a byte from the file without advancing to the next one. Successive calls to peek() will return the same value, as will the next call to read(). This function inherited from the Stream class.

Syntax

WiFiUDP.peek()

Returns

 b: the next byte or character -1: if none is available


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