You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had the same problem in my GetAccessPoints function I do a check on WlanInterface.IsRadioOn see below excerpt. I am wondering if NoWifiAvailable should return TRUE when radio is off. It doesn't currently do that.
/// <summary>
/// Returns a list over all available access points
/// </summary>
public List<AccessPoint> GetAccessPoints()
{
List<AccessPoint> accessPoints = new List<AccessPoint>();
if (_client.NoWifiAvailable)
return accessPoints;
foreach (WlanInterface wlanIface in _client.Interfaces)
{
if (wlanIface.IsRadioOn())
{
If I have WIFI turned off in Windows, this is throwing an error when trying to getAplist.
Once we instantiate Wifi client class, prior to running functions, how best to check if radio is enabled or not before running further functions?
The text was updated successfully, but these errors were encountered: