Arduino Function: WiFiLinkUDP.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

UDP.peek()

Returns

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

Note

Include WiFiLink.h and WiFiUdp.h, in head to the code, when you use the UDP functions.


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