so according to wireshark
mssg = sscanf(' 02 04 05 B4 01 01 04 02','%x');
show as 02 04 05 B4 01 01 04 02 sent correctly. which is what I want.
also have you tried
data_reader = DataReader(d_input_stream);
message = data_reader.readBuffer(bytes_available);
Rodney had that new in his 2nd update of his syntax.
I tried adding that to your script but couldnt get it to work right.