I'm aware of this post It described how to get an ssid in C#. However, that library isn't supported in dotnet core. Is there a way to get the ssid and signal strength of the currently connected wifi adapter in dotnet core?
I've tried playing with the NetworkInterface namespace (System.Net.NetworkInformation), and that seems to give me at least some diagnostic information about the network, but it definitely doesn't include the ssid. What do you guys think? Is this supported (yet)? The code I was playing with is below. It doesn't give me what I need though. I was mostly using it to explore with the debugger.
Jan 1, 2016 - Wi-Fi Scanner is useful for normal access point users who need to find out the signal strength distribution for their wireless network at home,.
Var interfaces = NetworkInterface.GetAllNetworkInterfaces; var connected = interfaces.Where(i = i.OperationalStatus OperationalStatus.Up).Where(i = i.NetworkInterfaceType NetworkInterfaceType.Wireless80211).ToList; var wifi = connected0; var props = wifi.GetIPProperties; var addr = wifi.GetPhysicalAddress; var stats = wifi.GetIPStatistics; Thanks guys.
Buratino22 14-Jul-08 22:55 14-Jul-08 22:55 Hey. I'm having trouble getting the data you get using your 'ConnectionClass'. Our structures are very much alike but I think I might be marshaling wrong somehow.
Could you post ConnectionClass.cs and the wrapping of the methods WlanQueryInterface/GetSignalQuality? On the same pc I ran your code, mine returned different (and bad.) results, and I didn't manage to get the connection statistics. I think it all comes down to wrapping and marshaling. Thank you, Ariel.