HOW do I access data that I sent using UDP from one Arduino uno to another?

Hi,

I am pretty new to the communication between two µcs, and I am a bit lost.

I have three Arduino Unos that are connected to each other using UDP and a router. I can see that there is data that is being sent across to them.

I have two questions/problems:

  1. I am sending an Int value using Udp.print(). I wanted to know how can I access this value on the receiving arduino? I need to display this value on a set of LEDs.

[SOLVED]2. I have data that is being sent correctly from Arduino1 to Arduino2. However from Arduino2, I have half of the data that is being sent to Arduino3 and the other half to Arduino1. I have no idea why this is happening. I have checked my code and tried looking though google to find a solution.

Any help is appreciated!

Thank you so much.

Any help is appreciated!

So, you have some problems with some code, and you want us to use our crystal balls to help you. Sorry, mine are brass.

PaulS:
So, you have some problems with some code, and you want us to use our crystal balls to help you. Sorry, mine are brass.

Well Sorry for asking and posting int the wrong section. But that doesn't give you the right to be rude and smug about it.

Look at the two UDP examples. UdpNtpClient and UDPSendRevceiveString. The NTP client is an example of a "client" and the send/receive is an example of a "server".

SurferTim:
Look at the two UDP examples. UdpNtpClient and UDPSendRevceiveString. The NTP client is an example of a "client" and the send/receive is an example of a "server".

Thank you! Got it fixed.