Go Down

Topic: UDP.write function reference addition (Read 2065 times) previous topic - next topic

SurferTim

Sep 16, 2013, 01:12 pm Last Edit: Sep 16, 2013, 01:39 pm by SurferTim Reason: 1
Greetings! Another change request to the reference docs.

From EthernetUdp.h
Code: [Select]
 // Write size bytes from buffer into the packet
 virtual size_t write(const uint8_t *buffer, size_t size);


The following additions should be added to this page:
http://arduino.cc/en/Reference/EthernetUDPWrite
Quote
Syntax
UDP.write(message);
UDP.write(buf,len);

Parameters
message: the outgoing message (char)
buf: an array to send as a series of bytes (byte or char)
len: the length of the buffer


edit: This addition allows you to send zeros in the packet.
I emailed this to the webmaster@arduino.cc also.

MadBob


Greetings! Another change request to the reference docs.


Corrected. Thanks for your integration.
BOFH

SurferTim


Go Up