WirelessZeroConfigNetworkInterface.ConnectToPreferredNetwork(ssid)

Last post 07-01-2008 21:14 by figuerres. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 04-02-2008 16:41

    WirelessZeroConfigNetworkInterface.ConnectToPreferredNetwork(ssid)

    I have obtained the list of nearby preferred access points. Should I be able to actually change the connection the wireless adapter is using to one of them with WirelessZeroConfigNetworkInterface.ConnectToPreferredNetwork(ssid)? Or is the NetworkInformation namespace only information an no actual control?

    Thanks for any help. I am new to OpenNETCF.

    Filed under: ,
  • 06-23-2008 10:07 In reply to

    Re: WirelessZeroConfigNetworkInterface.ConnectToPreferredNetwork(ssid)

    seems like I find serveral posts like this.... I think we all need some kind of sample code and or a "how to" guide on what we can / cant do with the WiFi Settings classes....

     Has anyone done one?  any sample code to share ??

     I might try and bang up some stuff to post but like the rest I am trying to put it all together to make a control dialog for my app.

     

  • 06-23-2008 10:53 In reply to

    • ctacke
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-27-2007
    • Indiana
    • Posts 1,895

    Re: WirelessZeroConfigNetworkInterface.ConnectToPreferredNetwork(ssid)

    It's certainly on our list of things to do, but we don't have any definitive all-in-one app yet created.  I've attached some of the samples/tests that I have created, but they are not definitive nor do I suspect that they are bug free or well documented.

    NetSamples.zip

  • 06-23-2008 11:23 In reply to

    Re: WirelessZeroConfigNetworkInterface.ConnectToPreferredNetwork(ssid)

    Yes thanks, I also just stumbled on the blog post and grabbed that code to start picking thru and GROK into some kind of outline of what to do with it....

     I think a few short bit might help a lot like:

     I want to notify the user that a network has been found but you are not connected.

    How to add a wireless network to the perffered networks

    how to notify the user that the device has connected with a network.

    if some common tasks get outlined then it starts to give folks a clue what to look for in related cases.

    thanks and I will see if I can now build the function I need, and If I can I will share back some sample code.

  • 06-24-2008 16:31 In reply to

    Re: WirelessZeroConfigNetworkInterface.ConnectToPreferredNetwork(ssid)

    Can you clarify what I need to do to add and connect to an access point?

     I am trying to do this but it seems to not work right.

     I have code that sees the AP and shows the db value.

    I am calling  wzcInterface.AddPreferredNetwork()

    and it returns true but nothing is connecting, I am also adding a call to ConnectToPreferedNetwork("SSID") using the same SSID as in the prior step and that does not appear to do anything.

    do I need to Call .Bind() ?? or some other API call ??

    if this helps the hardware is a CASIO IT-3000 that runs CE 4.1 the wireless is a CISCO AIRONET 350 PCMCIA card.

    it shows up as a wzc card / interface in the interface list.

    and "Use WIndows to configure..." is checked.

    I can manualy setup the connection from the dialogs.

    no drivers are loaded to use this card, any support for it is in the firmware that comes with the base hardware.

    any ideas??

     

  • 07-01-2008 21:14 In reply to

    Re: WirelessZeroConfigNetworkInterface.ConnectToPreferredNetwork(ssid)

    I need some help with how to add and connect.

     I have the sample code that lists wireless ap's and I am trying to add a new ap and connect to it.

     the call to add seems to work in code but connect fails and no ap has been added to the list of perfered networks.

     

Page 1 of 1 (6 items)