Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

UDP.begin return value

Open madbob opened this issue 12 years ago • 2 comments

Original by Tim Dicus:

I have found another error in the ethernet reference pages and have a correction for you.

This page states that there is no return value for UDP.begin(). That is not true. It returns 1 on success and 0 on fail (no socket available) http://arduino.cc/en/Reference/EthernetUDPBegin

This is from EthernetUdp.h virtual uint8_t begin(uint16_t); // initialize, start listening on specified port. Returns 1 if successful, 0 if there are no sockets available to use

madbob avatar May 20 '14 11:05 madbob

Is this too difficult for you? I gave you the correction, and you can't verify it for the webmaster?

SurferTim avatar May 23 '14 12:05 SurferTim

Cfr. http://forum.arduino.cc/index.php?topic=240403.0

madbob avatar Jun 06 '14 16:06 madbob