示例#1
0
        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);
        }
示例#2
0
        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();
            }
        }