Arduino Function: WiFiUDP.write

Description

This function writes UDP data to the remote connection. Must be called between beginPacket() and endPacket(). beginPacket() initializes the packet of data, it is not sent until endPacket() is called.

Syntax

WiFiUDP.write(byte);
WiFiUDP.write(buffer, size);

Parameters

  • byte: the outgoing byte
  • buffer: the outgoing message
  • size: the size of the buffer

Returns

 single byte into the packet bytes size from buffer into the packet


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