how to send the data to ble_app_uart , i used this line
ret = ble_nus_data_send(&m_nus,"hwllo",25,m_conn_handle);
but i am not receiving any data in ble_app
how to send the data to ble_app_uart , i used this line
ret = ble_nus_data_send(&m_nus,"hwllo",25,m_conn_handle);
but i am not receiving any data in ble_app
So the code was working fine in the default example but when you imported it, it is not.
Can you try to the default examples method of giving function the data argument:
static uint8_t data_array[BLE_NUS_MAX_DATA_LEN]; err_code = ble_nus_data_send(&m_nus, data_array, &length, m_conn_handle); //Send data this way
So the code was working fine in the default example but when you imported it, it is not.
Can you try to the default examples method of giving function the data argument:
static uint8_t data_array[BLE_NUS_MAX_DATA_LEN]; err_code = ble_nus_data_send(&m_nus, data_array, &length, m_conn_handle); //Send data this way