Hi,
Has anyone had any luck with UDP on a Netduino Plus 2 with MF 4.3.1? I seem to get errors when using the SetSocketOption call. The exception returns an internal error id of 10042 (Bad protocol option).
I'm starting to wonder whether using the Netduino boards are worth it (given this sort of issue and other bugs - like the network stack not detecting ethernet plug disconnects). I've noticed that someone has tried this on another MF board and it worked fine. Any suggestions?
I'm trying to capture UDP messages broadcast by another device on the local network.
/// <summary>
/// Starts the client connection.
/// </summary>
public void Open()
{
m_IsOpen = false;
lock (m_SyncLock)
{
var ipAddress = IPAddress.Parse("224.192.32.19");
var ipBytes = ipAddress.GetAddressBytes();
m_Client.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.MulticastInterface, ipBytes);
m_Client.Bind(m_Endpoint);
m_IsOpen = true;
}
}