Reputation: 1538
I am building a WP8.1 app & I need to know whether it is possible to find the signal strength of the available Wi-Fi connections programmatically? Searched a lot & at last reached here. Any suggestions/samples would be of great help. Thank you.
Upvotes: 2
Views: 866
Reputation: 21919
You can get a general level from the ConnectionProfile's GetSignalBars() method:
IReadOnlyList<ConnectionProfile> profiles = Windows.Networking.Connectivity.NetworkInformation.GetConnectionProfiles();
foreach (ConnectionProfile profile in profiles)
{
if (profile.GetNetworkConnectivityLevel() != NetworkConnectivityLevel.None)
Debug.WriteLine("{0} {1} {2} bars", profile.ProfileName, profile.GetNetworkConnectivityLevel(), profile.GetSignalBars());
}
Windows Phone doesn't provide more detailed information about the signal strength.
Upvotes: 2