Here is what i wanted to do in a .NET CF 3.5(C#) application
1) Check if the wireless adapter is working/active 2) Add a preferred network with the available SSID, password and other details 3) Establish connection to the preferred network
I tried using OpenNetCF.Net.NetworkInformation class, but tough luck! I'm not able to detect Wireless networks. All the networks includnig wifi and bluetooth are shown as Ethernet.
foreach (var networkInterface in NetworkInterface.GetAllNetworkInterfaces())
{
if (networkInterface is WirelessNetworkInterface)
MessageBox.Show("Found a WirelessNetworkInterface");
else if (networkInterface is WirelessZeroConfigNetworkInterface)
MessageBox.Show("Found a WirelessZeroConfigNetworkInterface");
else
MessageBox.Show("Ethernet??");
}
The problem I'm facing is discussed here http://community.opennetcf.com/forums/t/11099.aspx. But there are no solutions.
Are there any .NET CF APIs that allow me to interact with Wifi?