Stacker
Stacker

Reputation: 8237

Sending Ctrl+Z to a serial port

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

Answers (3)

Shiridish
Shiridish

Reputation: 4962

Use this Command

port.Write(txt_msgbox.Text + char.ConvertFromUtf32(26));

Upvotes: 0

Arjun Shetty
Arjun Shetty

Reputation: 1585

try this

(char)26

detail on ascii of char-z

Upvotes: 8

John Oxley
John Oxley

Reputation: 14990

Send the ASCII character 0x1A.

Have a look at the ASCII code table

Upvotes: 1

Related Questions