UDP Send Receive String Example

I suggest that you add

memset(packetBuffer, 0, UDP_TX_PACKET_MAX_SIZE);

In the end of the loop of the UDP Send/receive example that comes whit the Arduino software.

It will make it easier for rookies, my self-included.

Or maybe you can leave it out of there so people have to figure out them self why the UDP data they are sending are all messed up ;)

Could you explain more? Are you receiving unterminated strings? It seems like the declaration of packetBuffer in that example should be changed to:

char packetBuffer[UDP_TX_PACKET_MAX_SIZE + 1];

Otherwise if you receive a packet that is longer than UDP_TX_PACKET_MAX_SIZE there will be no terminator on the string. Is this the problem you are running into?