private async void button1_Click(object sender, EventArgs e) { pass = txtPass.Text; generator = new EsptouchGenerator(ssid, bssid, pass, EspNetUtil.getLocalInetAddress(), false); mIsInterrupt = false; this.Enabled = false; Config(); bool isSucces = await WaitSuccess(mParameter.getEsptouchResultTotalLen()); if (isSucces) { MessageBox.Show("SmartConfig connect cuccess to : "+ ssid+", IP = "+mEsptouchResultList[0].InetAddress.ToString()); } this.Enabled = true; }
private async void button1_Click(object sender, EventArgs e) { pass = txtPass.Text; generator = new EsptouchGenerator(ssid, bssid, pass, EspNetUtil.getLocalInetAddress(), false); mIsInterrupt = false; this.Enabled = false; Config(); bool isSucces = await WaitSuccess(mParameter.getEsptouchResultTotalLen()); if (isSucces) { MessageBox.Show("SmartConfig connect cuccess to : " + ssid + ", IP = " + mEsptouchResultList[0].InetAddress.ToString()); } this.Enabled = true; }