I example test ble_central and ble_peripheral of ble_app_uart. Radio TX and RX test is OK. It confirmed the data communications relating to uart_event_handler function.
if ((data_array[index - 1] == '\n') || (index >= (BLE_NUS_MAX_DATA_LEN)))
{
err_code = ble_nus_string_send(&m_nus, data_array, index);
}
when '\n' or length, should call the function ble_nus_string_send. But I have an arduino download wirelessly(nrf51822). arduino download data without the epilogue to '\n', length also is not fixed. I want to spend as data is coming. So, modified ble_app_uart. uart_event_handle function of ble_pripheral and ble_central as below.
switch (p_event->evt_type)
{
case APP_UART_DATA_READY:
UNUSED_VARIABLE(app_uart_get(&data_array[index]));
index++;
ble_nus_string_send(&m_nus, data_array, index);
index = 0;
break;
....
ble_pripheral is OK. ble_central is not OK. ble_central When you send the data 10 received only one front. Where parts need to modify? Or is the source code for the modem type?