Sam_Rhodes
June 12th, 2009, 09:23 AM
I'm writing an app that communicates with a piece of hardware through an RS-232 port. I want to use the PORT.ReadExisting() functionality to read all received bytes from the buffer. However, the 'ReadExisting()' function returns a character string (each character being 0-127 in value).
I need to read in values outside of the standard ASCII set upto values of 255. I can use ReadByte to get the values, but there is no 'Get all bytes from bufer' function, and I'm not sure exactly where to start making one.
Anyone have any ideas?
Cheers,
Sam.
I need to read in values outside of the standard ASCII set upto values of 255. I can use ReadByte to get the values, but there is no 'Get all bytes from bufer' function, and I'm not sure exactly where to start making one.
Anyone have any ideas?
Cheers,
Sam.