UDP Send Receive String Example


i suggest add

memset(packetbuffer, 0, udp_tx_packet_max_size);

in end of loop of udp send/receive example comes whit arduino software.

it make easier rookies, self-included.

or maybe can leave out of there people have figure out them self why udp data sending messed ;)

could explain more?
are receiving unterminated strings?
it seems declaration of packetbuffer in example should changed to:
code: [select]
char packetbuffer[udp_tx_packet_max_size + 1];
otherwise if receive packet longer udp_tx_packet_max_size there no terminator on string. problem running into?


Arduino Forum > Development > Suggestions for the Arduino Project > UDP Send Receive String Example


arduino

Comments