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

sd_ble_gatts_hvx vs. ble_nus_data_send

As I'm new to the BLE, I'm trying to make use of examples enclosed in the nRF5 SDK.

Now, I found that there exist several functions that seem like do similar things and they make me confusing...

Is there any difference between sd_ble_gatts_hvx() and ble_nus_data_send()?

I think the former gets input as ble_gatts_hvx_params_t struct and the latter gets ble_nus_t struct and some more.

If they do the same thing, data transmission via Bluetooth, then why there are two functions with different types of input?

Parents Reply Children
Related