Hello
I know for most of you this is probably pretty basic but here we go. I am sending data via the BLE link. As part of my data I need to send a hex 0x0d (carriage return). I want to send 1 hex byte "0d".
This is what i presently have. This generates 2 bytes "00" or Null and "0d". What would be the method to get DataTX2 down to 1 byte.
if I change the hex value to 0xd then the code crashes on the conversion line.
Any suggestions would be greatly appreciated.
Dim DataTx2() As Byte
DataTx2= ByteConv.HexToBytes("0x0d")
manager.WriteData(AirConsoleDataService,AirConsoleDataChara,DataTx2)
Thanks
I know for most of you this is probably pretty basic but here we go. I am sending data via the BLE link. As part of my data I need to send a hex 0x0d (carriage return). I want to send 1 hex byte "0d".
This is what i presently have. This generates 2 bytes "00" or Null and "0d". What would be the method to get DataTX2 down to 1 byte.
if I change the hex value to 0xd then the code crashes on the conversion line.
Any suggestions would be greatly appreciated.
Dim DataTx2() As Byte
DataTx2= ByteConv.HexToBytes("0x0d")
manager.WriteData(AirConsoleDataService,AirConsoleDataChara,DataTx2)
Thanks