public bool SetApNetwork(APNetwork net) { var ret = SendCommand($"AT+CWSAP_{ConfigMode}={net.ToString()}"); if (ret.Result == "OK") { return(true); } return(false); }
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(); } } }