Hello guys,
this is rather disappointing to know that I only have TWO network sockets available on the Cerbuino and ENC28, I mean how can we call these IoT when you can’t even have what wiznet used to offer on PANDA which was 4 Sockets… what gives…???
here is a test code:
ArrayList jayc = new ArrayList();
var SCount = 1;
while (true)
{
Thread.Sleep(10);
try
{
jayc.Add(new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp));
Debug.Print("********** Socket Test " + SCount++ + " **********");
Thread.Sleep(10);
}
catch (Exception)
{
Debug.Print("********** Constaint Exception on Test " + SCount + " **********" + jayc.Count);
}
}
here are the results of the above code:
********** Socket Test 1 **********
********** Socket Test 2 **********
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in Microsoft.SPOT.Net.dll
An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in Microsoft.SPOT.Net.dll
and the cerbuino device info:
DeviceInfo:
HAL build info: 4.2.0.0, Copyright GHI Electronics, LLC
OEM Product codes (vendor, model, SKU): 255, 0, 65535
Serial Numbers (module, system):
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
Solution Build Info: 4.2.6.0, Copyright (C) GHI Electronics, LLC
Now how can we increase the count to at least match the smaller chips… 4 Sockets…
Jay.