arduino-libraries / Ethernet

Ethernet Library for Arduino
http://arduino.cc/
259 stars 264 forks source link

UDP_TX_PACKET_MAX_SIZE used only in UDPSendReceiveString.ino example as size of RX buffer #109

Open JAndrassy opened 5 years ago

JAndrassy commented 5 years ago

UDP_TX_PACKET_MAX_SIZE in Ethernet.h is some forgotten define. The only current use is in the UDPSendReceiveString example for the size of the receive buffer. 24 is really not enough there. It causes confusion. https://stackoverflow.com/questions/57467523/arduino-ethernet-shield-not-receiving-udp-packets-correctly

Rotzbua commented 5 years ago

Confirmed. Constant UDP_TX_PACKET_MAX_SIZE should be moved to the example. @jandrassy you should create a pull request.