コード例 #1
0
 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;
 }
コード例 #2
0
ファイル: Form1.cs プロジェクト: weera00/.NetSmartConfig
        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;
        }