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

Transfer/write data to softDevice from nrf52832 through BLE

Hello, I am using a nrf52832 Soc for my development. I follow this https://github.com/bjornspockeli/custom_ble_service_example for the custom BLE service. I can do a specific work by Handling the Write event from the SoftDevice (data received from softDevice to Nrf52832 module through BLE) as directed by the github tutorial. This tutorial was suggested by the Nordic technical expert once.   

But right now I want to transfer data to the softDevice from  nrf52832 as a response. So I don't find any specific part in the tutorial by which I can handle this operation. Please help me how can I send / transfer a data packet from nrf52832 to the softDevice as a response.

Parents Reply Children
  • Well. I suggest that you study that example, and do the same as it is done there. Add another characteristic that you can use to send data from the nRF to the connected device via notifications, using the function that I mentioned, ble_nus_data_send(), which uses sd_ble_gatts_hvx().

    I believe that the ble_app_uart example is exactly what you are looking for.

Related