Sending Ctrl+Z to a serial port
I开发者_如何学C'm sending AT-Command to gsm modem through serial port.
At the end of the AT-Command I have to terminate the command with Ctrl+z
How would I do that in serial port?
try this
(char)26
detail on ascii of char-z
Send the ASCII character 0x1A.
Have a look at the ASCII code table
Use this Command
port.Write(txt_msgbox.Text + char.ConvertFromUtf32(26));
精彩评论