Hi everyone,
I was tinkering with visual C# and send a UDP broadcast to 2 arduino ethernet's for information. With WireShark I follow the UDP data and it is sending (From C# to the broadcast addres) and both arduino's are answering. Unfortunately i'm having trouble receiving the data packages after a broadcast. With normal point-to-point communication i'm having no trouble.
The line where it goes wrong:
IPEndPoint RemoteIpEndPoint = new IPEndPoint(IPAddress.Any, 0);
if (udpClient.Available > 0)
{
//lot of code
}
In my oppinion the "IPEndPoint(IPAddress.Any, 0)" should read all IP's on each port. Yet it doesn't.
Broadcast is enabled with udpClient.EnableBroadcast = true;
Who knows where to keep on searching?