I need to read binary data from a serial port. The data is in the format of 23 single byte values. After the values are read I need to combine pairs of byte values (high and low) to get a 16 bit value.
I have read text values from the serial port before but have no experience in binary data. How do I ....
1) read binary data into a variable?
2) convert high and low single byte values into one 16 bit value?
Some simple code examples would be appreciated.