write()
Description
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.
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
The text of the 86Duino reference is a modification of the 86Duino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.