public async void SetupWirelessAP(object sender, EventArgs e)
        {
            this.SetViewState(true);

            App.wirelessconfig.Password = this.PasswordEntry.Text;

            var publicKey = await SoftAPConfig.GetPublicKeyAsync();

            var configureresult = await SoftAPConfig.SetConfigureAPAsync(0, ssidlist.Where(l => l.SSID == App.wirelessconfig.SSID).First(), App.wirelessconfig.Password, publicKey);

            if (configureresult == 0)
            {
                await SoftAPConfig.SetConnectAPAsync(0);
            }

            this.SetViewState(false);
        }
        private async void ConnectDeviceAsync() // STEP 2
        {
            Step2ProgressRing.IsActive = true;
            Step2Grid.Visibility       = Visibility.Visible;

            int result = await SoftAPConfig.SetConnectAPAsync(configurIndex);

            Step2ProgressRing.IsActive = false;
            Step2Checkmark.Visibility  = Visibility.Visible;

            if (result == 0)
            {
                CloudConnectionAsync();
            }
            else
            {
                FailureToConfigure();
            }
        }