How to send and receive hex or binary numbers via BLE UART? I am trying to send hex or binary numbers through BLE UART, but it is taking only char value which is converted into ASCII value.

I am using Adafruit's Bluefruit micro device and Bluefruit LE apps.

https://github.com/adafruit/Bluefruit_LE_Connect_Android
https://github.com/adafruit/Adafruit_BluefruitLE_nRF51

Serial.print(F("[Recv] "));
Serial.println(ble.buffer);
BluetoothData=ble.buffer[0];
Serial.println(BluetoothData);




In the UART box I want to type only a hex number and receive it in the Ble.buffer of the Arduino only.
ASCII is just a pattern of 0s and 1s, and can therefore be represented in binary, hex, octal, or decimal. The interpretation is entirely up to you in your code.