UDP_TX_PACKET_MAX_SIZE
Posted: Wed Sep 22, 2021 6:56 pm
In `EthernetUdp.h` I see the following `#define`:
1. Doing a search inside the arduino directories I cannot find any use of it but in the examples (at application level):
and
How and where this `#define` is used in the internal libraries?
2. Where is defined the size of the receive buffer?
Code: Select all
#define UDP_TX_PACKET_MAX_SIZE 24
Code: Select all
step73@lap:~/Arduino/libraries$ grep -nrw . -e UDP_TX_PACKET_MAX_SIZE
./STM32duino_STM32Ethernet/src/EthernetUdp.h:45:#define UDP_TX_PACKET_MAX_SIZE 24
./STM32duino_STM32Ethernet/examples/UDPSendReceiveString/UDPSendReceiveString.ino:30:char packetBuffer[UDP_TX_PACKET_MAX_SIZE]; //buffer to hold incoming packet,
./STM32duino_STM32Ethernet/examples/UDPSendReceiveString/UDPSendReceiveString.ino:62: Udp.read(packetBuffer, UDP_TX_PACKET_MAX_SIZE);
Code: Select all
step73@lap:~/.arduino15$ grep -nrw . -e UDP_TX_PACKET_MAX_SIZE
2. Where is defined the size of the receive buffer?