Reference   Language | Libraries | Comparison | Changes

WiFi101 : WiFiUDP.write()


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


WiFiUDP.write(buffer, size);


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


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

Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.