This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2640R2F: Sending uint16_t in a Array

Part Number: CC2640R2F
Other Parts Discussed in Thread: CC2640

Hello,
I need to stream 16bit integer datasets from the cc2640 to an Android device using BLE.
I can successfully send an array of uint8_t through BLE but I would like to send an array of uint16_t. is it possible to do this or I have to convert the 16bit integers to two 8bit integers as in this example:

uint8_t valueArray[SIMPLEPROFILE_CHAR4_LEN] = {};

uint8_t hi_lo[] = { (uint8_t)(value >> 8), (uint8_t)value }; 
valueArray[0] = hi_lo[0];
valueArray[1] = hi_lo[1];
...

Thank you