0

I have a (C#) process which looks for the presence of an SSID, and connects if it appears.

As a process it works, but it does take a long time for the SSID to appear in the list. IF I click on the WiFi icon in Windows to show available networks, it appears to then search and the SSID appears. If I leave it for say 30-60 seconds, then it'll eventually appear.

So, is there a way to programatically do whatever it is that happens when you manually click on the WiFi icon in the taskbar?

Paul
  • 9,409
  • 13
  • 64
  • 113

1 Answers1

0

Windows must be interrogated about possible connections to refresh the list. You can do it this way (taken from Update Wifi networks programmatically):

var client = new WlanClient();
foreach (WlanInterface wlan in client.Interfaces)
   wlan.Scan();
Denis G. Labrecque
  • 1,023
  • 13
  • 29