Esempio n. 1
0
        public CurWifiInfo GetCurWifiInfo()
        {
            CurWifiInfo info = new CurWifiInfo();

            info.bssid = "no_ssid_wifi";
            info.ssid  = "no_ssid_wifi";
            return(info);
        }
Esempio n. 2
0
        public CurWifiInfo getCurWifiInfo()
        {
            CurWifiInfo          info          = new CurWifiInfo();
            NetworkInterfaceList interfaceList = new NetworkInterfaceList();
            NetworkInterfaceInfo interfaceInfo = interfaceList.First();

            if (!DeviceNetworkInformation.IsWiFiEnabled)
            {
                return(null);
            }

            info.ssid = interfaceInfo.InterfaceName;

            return(info);
        }