Cruz
4th February 2009, 13:43
Hi.
After reading from a serial port I have a bunch of binary data in a char buffer.
char buff[n];
int bytesRead = port->read(buff, n);
I want to scrutinize the data byte by byte and display each byte in a hexadecimal format like this: 0x01 0x1F 0xFE ...
Can you please point me in the right direction?
After reading from a serial port I have a bunch of binary data in a char buffer.
char buff[n];
int bytesRead = port->read(buff, n);
I want to scrutinize the data byte by byte and display each byte in a hexadecimal format like this: 0x01 0x1F 0xFE ...
Can you please point me in the right direction?