Pages: [1]   Go Down
Author Topic: UDP.write function reference addition  (Read 1940 times)
0 Members and 1 Guest are viewing this topic.
Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 149
Posts: 6117
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Greetings! Another change request to the reference docs.

From EthernetUdp.h
Code:
 // 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.
« Last Edit: September 16, 2013, 06:39:32 am by SurferTim » Logged

Forum Administrator
Offline Offline
Jr. Member
*****
Karma: 9
Posts: 95
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Greetings! Another change request to the reference docs.

Corrected. Thanks for your integration.
Logged

BOFH

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 149
Posts: 6117
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the fast response!   smiley

Logged

Pages: [1]   Go Up
Jump to: