Getting wifi name and other details of wifi in windows phone 8.1

976 views Asked by At

I want to get all details of wifi such as its name and other details in a windows phone app using c# language.

Please suggest me some way to do this.

2

There are 2 answers

1
Burak Kaan Köse On

You can't get WiFi's name AFAIK , here are all the informations you can get using NetworkInformation class.

https://msdn.microsoft.com/en-us/library/windows/apps/hh202859%28v=vs.105%29.aspx

0
Jon On

You can get the current wifi name(SSID) like this:

string SSID;
var icp = Windows.Networking.Connectivity.NetworkInformation.GetInternetConnectionProfile();
if (icp != null)
{
    if (icp.WlanConnectionProfileDetails != null)
    {
        SSID = icp.WlanConnectionProfileDetails.GetConnectedSsid();
    }
}