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.

CCS/CC2640R2F: how to show uart data to the ble charcterstics in android app ble scanner

Part Number: CC2640R2F

Tool/software: Code Composer Studio

Hello

developers.

i want to read the data from the UART 

and to show that data on the BLE android  application(BLE Scanner).

i am using project zero as a reference.

please help me out to understand how to do this task.

is there any example related to that task?

  • Hi m_vedsharma,

    I would recommend using the data you receive over UART to set the value of the string characteristic of the data service in Project Zero. When you receive data, you can write the data by using DataService_SetParameter(DS_STRING_ID, sizeof(uartData), void *uartData). By default, the string characteristic holds 40 bytes. If you have more than 40 bytes you wish to set, you will need to increase the size of DS_STRING_LEN in data_service.h.
  • Thanx for reply
    I have a query
    how to use UART_read(UART_Handle handle, void *buffer, size_t size); function and arguments ?