Adding a Preferred Network programmatically

  • Thread starter Thread starter Eric Guevremont
  • Start date Start date
E

Eric Guevremont

Is there a way to add a network to the Preferred Networks list
programmatically with the .net compact framework?

I am building a treasure hunt type of application and I want the app to
connect to specific access points as they are encountered along the way.

I looked at opennetcf.net, and the ConnectionManager seems to
automatically use this Preferred Network list. I don't see any way to
get it to a connect to a specific AP without knowing its guid (e.g.
using the mac address).

I would appreciate any snippets or good ideas.

Cheers,

Eric
 
Wait a minute. How could you *ever* connect to a "specific AP" without
knowing its SSID? The MAC address never enters into the equation for RF
connections. It's *always* done based on the SSID. If you clear that up,
we might be able to understand better what you'd need, but additional
details on what (rather than how), would give you the best chance of useful
help.

Get OpenNETCF SDF. The .Net namespace has a lot of RF stuff in it.

Paul T.
 
Sorry about the confusion. I do have the SSID of the AP and would be
happy to establish a connection using it.

Part of my problem is that opennetcf.net has a lot of stuff in it -- I
don't know where to look. Is there anything in particular that I should
look at?

The ConnectionManager only seems able to connect using the guid of the
destination.

Eric
 
ConnectionManager is not what you need. WiFi connections are established by
means of OpenNETCF.Net.AccessPoint and OpenNETCF.Net.Adapter. In particular
you will need to use OpenNETCF.Net.Adapter.SetWirelessSettings
 
Back
Top