Hello,
I am using 12 bit ADC in my application but data element more than 8bit is not send correctly, Also not receiving Array[10000] element. I am using nrf52.
Thank You, Ram
Several ways to do this, all of them covered numerous times in the forum. I'm a fan of doing something like this for 16 bits or two bytes (from here you can work out the for loops and counters required)
nus_to_send_array[0] = (Array[0] & 0xFF00) >> 8;
nus_to_send_array[1] = (Array[0] & 0x00FF);
...
nus_to_send_array[18] = (Array[9] & 0xFF00) >> 8;
nus_to_send_array[19] = (Array[9] & 0x00FF);
ble_attempt_to_send(nus_to_send_array, sizeof(nus_to_send_array));