I'm aware of this post Get SSID of the wireless network I am connected to with C# .Net on Windows Vista 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.
var interfaces = NetworkInterface.GetAllNetworkInterfaces();
var connected = interfaces
.Where(i => i.OperationalStatus == OperationalStatus.Up)
.Where(i => i.NetworkInterfaceType == NetworkInterfaceType.Wireless80211)
.ToList();
var wifi = connected[0];
var props = wifi.GetIPProperties();
var addr = wifi.GetPhysicalAddress();
var stats = wifi.GetIPStatistics();
Thanks guys.