Reputation: 8237
I'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?
Upvotes: 4
Views: 7868
Reputation: 4962
Use this Command
port.Write(txt_msgbox.Text + char.ConvertFromUtf32(26));
Upvotes: 0
Reputation: 14990
Send the ASCII character 0x1A.
Have a look at the ASCII code table
Upvotes: 1