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
  • Hello,

    So you want to send data from the nRF52832 to the connected device, is that the case?

    I suggest that you look at the ble_app_uart example, which can both send and receive data. It uses the function ble_nus_data_send() (at least that is the name in SDK15.3.0. In some older SDKs it is called ble_nus_string_send()). 

    Let me know if that is what you are looking for, or if it is something else.

Reply
  • Hello,

    So you want to send data from the nRF52832 to the connected device, is that the case?

    I suggest that you look at the ble_app_uart example, which can both send and receive data. It uses the function ble_nus_data_send() (at least that is the name in SDK15.3.0. In some older SDKs it is called ble_nus_string_send()). 

    Let me know if that is what you are looking for, or if it is something else.

Children
Related