/// <summary> /// Calls WiFiManager.GetFoundAPs() to get scan result and return a list /// that contains Wi-Fi AP information /// </summary> /// <returns>APInfo list with scan results</returns> public List <APInfo> ScanResult() { Logger.Log("ScanResult()"); try { _apList = WiFiManager.GetFoundAPs(); List <APInfo> apInfoList = new List <APInfo>(); foreach (var item in _apList) { apInfoList.Add(new APInfo { Name = item.NetworkInformation.Essid, State = item.NetworkInformation.ConnectionState.ToString(), }); } return(apInfoList); } catch (Exception e) { Logger.Log(e.ToString()); return(null); } }
/// <summary> /// Call WiFiManager.GetFoundAPs() to get scan result and return a list that contains Wi-Fi AP information /// </summary> /// <returns>scan result by a list of Wi-Fi AP information</returns> public List <APInfo> ScanResult() { LogImplementation.DLog("ScanResult()"); try { // Call Tizen C# API apList = WiFiManager.GetFoundAPs(); // return a list that contains Wi-Fi ESSID return(GetAPList()); } catch (Exception e) { LogImplementation.DLog(e.ToString()); } return(null); }