Пример #1
0
        public bool SetApNetwork(APNetwork net)
        {
            var ret = SendCommand($"AT+CWSAP_{ConfigMode}={net.ToString()}");

            if (ret.Result == "OK")
            {
                return(true);
            }
            return(false);
        }
Пример #2
0
 private void btnAppliquer_Click(object sender, EventArgs e)
 {
     if (cbAP.Checked)
     {
         var ret = new APNetwork(" GrowBe", _growbe.MacAdresse, txtPW.Text);
         if (_growbe.SetApNetwork(ret))
         {
             MessageBox.Show("Changement effectué avec succès");
             SetTextBox();
         }
     }
 }