I send data from nRF Connect to nRF52 DK and this data transfer correctly. But i didn't find this data variable.

Hi,

I am using SDK 17 version. The file name is ble_app_uart_pca10040. I send to data from nRF Connect app to nRF52 DK and this data reach correctly to nRF52. But i didn't find this data variable in ble_app_uart_pca10040 code file. Anyone can help me? 

Thank you.

Parents Reply Children
  • Hello again,

    The data will be available in the BLE_NUS_EVT_RX_DATA event as p_evt->params.rx_data.p_data (pointer to the data) and p_evt->params.rx_data.length (length of the data).

    The standard logger output for the ble_app_uart example is through RTT, so you will need an RTT terminal like RTT Viewer from Segger to see these messages.
    If you have set the logger level to debug the module itself will dump the raw binary values of the received transfer, with the calls to:

    NRF_LOG_DEBUG("Received data from BLE NUS. Writing data on UART.");
    NRF_LOG_HEXDUMP_DEBUG(p_evt->params.rx_data.p_data, p_evt->params.rx_data.length);

    Best regards,
    Karl

Related