C# Ascii to Hex Conversion
Posted on 2010-08-18
I have a serial message that I want to convert and re-transmit.
Input is 10 data bytes say..
byte bt_message = 0x38,0x38,0x30,0x31,0x30,0x30,0x30,0x31,0x46,0x46
This is equivalent to ASCI '8','8','0','1','0','0','0','1','F','F'
I want to combine these bytes in pairs and resend so I would have output string as 5 bytes...
ie each output byte combined from two input hex bytes.
Any help apreciated.