WiFiAdapter get stuck in FromIdAsync

Hello,

I´m trying to get the signal strenght of the Wifi from the HoloLens, but the program stops working after the FromIdAsync function.

            WiFiAdapter wiFiAdapter;
            var access = await WiFiAdapter.RequestAccessAsync();
            Debug.Log("check permission");
            if (access != WiFiAccessStatus.Allowed) {
                throw new Exception("WiFiAccessStatus not allowed");
            }
            else {
            Debug.Log("... allowed");
                var wifiAdapterResults =
                  await DeviceInformation.FindAllAsync(WiFiAdapter.GetDeviceSelector());
            Debug.Log("getAdapters");
                if (wifiAdapterResults.Count >= 1) {
            Debug.Log("getFirstAdapter before");
            Debug.Log(wifiAdapterResults[0].Id);
                    wiFiAdapter =
                      await WiFiAdapter.FromIdAsync(wifiAdapterResults[0].Id); //stops here
            Debug.Log("... after"); // not getting here
Sign In or Register to comment.