This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF52 ble_app_uart example Android getting wrong data

Hi,

nrf52 using  from ble-peripheral->  ble_app_uart examle

In that ble_app_uart example receive the data from the android is ok.

But,i want transmit array type of data to Android using ble_nus_data_send. In that android side, we receive wrong data.

Kindly give the solution.

For Example,

uint8_t string1[10]={9,10,12,13,14,15,16,17,18,19};

uint8_t length =10;

err_code = ble_nus_data_send(&m_nus, string1, &length, m_conn_handle);

Output:

In the Android receives - > ^I^J^^L^M^N^O^P^Q^R^S

Related