I'm communicating with Serial ( SerialPort
) with a device that needs me to send the CR LF commands at the end of each statement so the device understands that an instruction has been sent to it.
The instructions that I should send are all in ASCII.
I know that in the ASCII table there are the commands Line-Feed - Line feed (10) and Carriage-Return - Carriage return (13).
The communication is working perfectly, but the device always returns me an invalid command because I need to send these characters at the end of each statement.
How do I write together in Port.Write
or Port.WriteLine
at the end of each statement these characters in ASCII?