Arduino Function: WiFiUDP.available

Description

Get the number of bytes (characters) available that can be read from the buffer.
This is related on data that's already arrived.

This function can only be successfully called after WiFiUDP.parsePacket().
available() inherits from the Stream utility class.

Syntax

WiFiUDP.available()

Returns

 1: the number of bytes available in the current packet 0: if parsePacket hasn't been called yet


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