Arduino Function: WiFiUDP.parsePacket

Description

This function starts processing the next available incoming packet, checks for the presence of a UDP packet, and reports its size. The parsePacket() function must be called before reading the buffer with UDP.read().

Syntax

UDP.parsePacket();

Returns

 the size of the packet in bytes 0: if no packets are available


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