I am trying to write "at" commands to serail port and send sms.
smsPort->Write("at"); // smsport type is System::IO::Ports::SerialPort ^smsPort;
gives me output OK
At the end(after the writing message) I need to write ctrl+z
this gives me error
'void System::IO::Ports::SerialPort::Write(System::String ^)' : cannot convert parameter 1 from 'char' to 'System::String ^'
If I do string concat as following code it runs, but sms never sends. by doing the same thing in java I was managed to send sms.
smsPort->Write("Message" + (char)26);
The output is
Could you please tell me how to write ctrl+z to serail port?