Sending Ctrl + Z to the serial port

I am sending an AT command to the gsm modem via the serial port.

At the end of the AT command, I need to end the command with Ctrl + z

How to do this in a serial port?

+4
source share
3 answers
+7
source

Send the ASCII character 0x1A.

Look at the ASCII code table

+1
source

Use this command

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

0
source

Source: https://habr.com/ru/post/1368932/


All Articles