Hello. I am using the nRF51 Development Kit which is working well. I am using the examples\ble_peripheral\ble_app_uart sample project as it seems to have the features that I am looking for, ie., receive BLE data from and external device. I do not need Tx capabilities. In the main.c I feel that the following procedure: static int * nus_data_handler(ble_nus_t * p_nus, uint8_t * p_data, uint16_t length) receives the BLE data and I would like to capture the BLE data and put it in an array so that I can process it with my code. I have created an array called ble_data[] which I would like to receive the BLE data in the code from the previous mentioned routine. I have tried every variation I could think of, but I can not get anything to work. The following code is your code from the above mentioned routine, and the commented out code is my code. Could you let me know what I need to use in place of my commented out code so that I will have an array of the received BLE data?
for (uint32_t i = 0; i < length; i++)
{
while (app_uart_put(p_data[i]) != NRF_SUCCESS) ;
// ble_data[i] = *p_data + I ;
}
Thank you so much for your assistance!