How to ReadLine with Carriage Return only

  • Thread starter Thread starter PrestonPressure
  • Start date Start date
P

PrestonPressure

Guest
I need to read a value from a temperature device. I send "RT" (Read Temperature) to the device, and it answers back with the temperature value, terminating the serial transmission (RS-232) with "CR", carriage return only. Visual Studio, by default, wants to see "\r\n", (both Carriage Return and New Line).

Evidently, I need to change the NewLine property, but I find no explanation about how to make this change from the default "\r\n" to "\r" only. Can someone explain how to do this?

Continue reading...
 
Back
Top