User Manual

int peek (void)
Reads a single byte from the UDP response buffer without advancing to the next position in the buffer.
Parameters: None
Returns: The first byte available in the UDP buffer, or '-1' if no data is available.
int available (void)
Returns the number of bytes available to be read in the UDP buffer.
Parameters: None
Returns: The number of bytes available to be read in the UDP buffer, otherwise '0' if the read buffer is empty.
void flush (void)
This function will flush the buffer of any outgoing data, and return when the buffered data has been sent and the buffer
is empty.
Parameters: None
Returns: Nothing
size_t write (uint8_t byte)
Writes a single byte to the remote UDP server. This function must be placed after AdafruitUDP.beginPacket() and
before AdafruitUDP.endPacket(). The packet will not be sent until .endPacket is called!
Parameters:
byte: The single byte to write to the transmit buffer
Returns: The number of bytes written.
size_t write (const uint8_t *buffer, size_t size)
Writes the specified 'buffer' to the remote UDP server. This function must be placed after AdafruitUDP.beginPacket()
and before AdafruitUDP.endPacket(). The packet will not be sent until .endPacket is called!
Parameters:
buffer: The buffer where the data to transmit is stored
size: The number of bytes contained in 'buffer'
This function must be called AFTER AdafruitUDP.parsePacket()!
This function must be called AFTER AdafruitUDP.parsePacket()!
© Adafruit Industries https://learn.adafruit.com/introducing-the-adafruit-wiced-feather-wifi Page 90 of 202