user14152: 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.

user-1: 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.

14152: <p>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.</p>

<p>I am using Adafruit's Bluefruit micro device and Bluefruit LE apps.</p>

<p><a href="https://github.com/adafruit/Bluefruit_LE_Connect_Android" rel="nofollow noreferrer">https://github.com/adafruit/Bluefruit_LE_Connect_Android</a>
<a href="https://github.com/adafruit/Adafruit_BluefruitLE_nRF51" rel="nofollow noreferrer">https://github.com/adafruit/Adafruit_BluefruitLE_nRF51</a></p>

<pre><code>Serial.print(F("[Recv] "));
Serial.println(ble.buffer);
BluetoothData=ble.buffer[0];
Serial.println(BluetoothData);
</code></pre>

<p><a href="https://i.stack.imgur.com/maqfC.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/maqfC.jpg" alt="enter image description here"></a></p>

<p>In the UART box I want to type only a hex number and receive it in the Ble.buffer of the Arduino only.</p>
 -1: <p>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.</p>
