locked
Namespace for "connection status" of each entry in WlanBssEntries (or elsewhere)? RRS feed

  • Question

  • I assume the best way to query available connections is something like this:

     

    WlanClient wlanClient = new WlanClient();

     

    foreach (WlanClient.WlanInterface wlanInterface in wlanClient.Interfaces)

    {

     

    Wlan.WlanBssEntry[] wlanBssEntries = wlanInterface.GetNetworkBssList();

     

    foreach (Wlan.WlanBssEntry wlanBssEntry in wlanBssEntries)

    {

    returnValue +=

    Encoding.ASCII.GetString(wlanBssEntry.dot11Ssid.SSID, 0, (int)wlanBssEntry.dot11Ssid.SSIDLength).PadRight(30, ' ');

    returnValue += wlanBssEntry.dot11BssType.ToString().PadRight(20,

    ' ');

    returnValue += wlanBssEntry.rssi.ToString().PadLeft(10,

    ' ');

    returnValue += (wlanBssEntry.linkQuality +

    "% ").PadLeft(10, ' ');

    I want to add an indicator that tells the state of each connection ... "connecting...", "connected", "disconnecting...", "disconnected", etc.

    I can't find this connection status anywhere ... where is the namespace?  

    Friday, April 15, 2011 3:20 PM