private void SetChannel(int chn) { StringWriter sw = new StringWriter(new StringBuilder()); var cmd = new CmdCustom(string.Format("AT+CHN={0}", chn), sw); serialService.SendCommand(cmd); }
private void btnSendCustomCmd_Click(object sender, EventArgs e) { StringWriter sw = new StringWriter(new StringBuilder()); var customCmd = new CmdCustom(txtCustomCmd.Text, sw); if (serialService.SendCommand(customCmd)) { txtConsole.Text = sw.ToString(); } }