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

Indicate vs Notify Operations with nRF Toobox

I recently discovered this article (mbientlab.com/.../) and am trying to understand the data transfer type between the firmware (ble_app_hrs_s110_pca10028) and an iOS device running nRF Toolbox v1.9

Are the heart rate transfers indicate or notify?

  • From ble_hrs.c:

        hvx_params.handle = p_hrs->hrm_handles.value_handle;
        hvx_params.type   = BLE_GATT_HVX_NOTIFICATION;
        hvx_params.offset = 0;
        hvx_params.p_len  = &hvx_len;
        hvx_params.p_data = encoded_hrm;
    
        err_code = sd_ble_gatts_hvx(p_hrs->conn_handle, &hvx_params);
    

    sd_ble_gatts_hvx is used for both indications and notifications, and as you see above, BLE_GATT_HVX_NOTIFICATION is used.

    So the answer is notify.

Related