I am trying to read from my serial port a 24 bit binary number.
I was able to read this number as a HEX but I was getting errors as at
times using the vBCrLf indicator.
I also can read it as an incoming string looking for the vbCrLf
indicator but it too gave me errors as the length of the stream was
not always 24 bits for some reason.
I have to slow the output down to reduce the amount of garbled data
being sent to the serial port.
I want to try reading the buffer as an array but I don't have much
experience with arrays.
Is there any example code out there of how to read a serial port
buffer in 24 bit chunks?
I was able to read this number as a HEX but I was getting errors as at
times using the vBCrLf indicator.
I also can read it as an incoming string looking for the vbCrLf
indicator but it too gave me errors as the length of the stream was
not always 24 bits for some reason.
I have to slow the output down to reduce the amount of garbled data
being sent to the serial port.
I want to try reading the buffer as an array but I don't have much
experience with arrays.
Is there any example code out there of how to read a serial port
buffer in 24 bit chunks?