Go Down

Topic: UDP.write function reference addition (Read 2238 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy