Hi,
1/ I download the s110 softdevice and ble_app_hrs to the nRF51822 board, and running normally. 2/ I download the s120 softdevice and ble_app_hrs_c to the nRF51822 board, and running normally. 3/ Two board are connected, and the central part displayed the information about the heart rate.
Then ,I changed some code to see how central get the scanrsp data: s110 : I add the scanrsp data to the ble_advdata_set() function. err_code = ble_advdata_set(&advdata, &scanrsp);
S120: I add a if conditional statement in the case "BLE_GAP_EVT_ADV_REPORT" of on_ble_evt() function:
if(p_gap_evt->params.adv_report.scan_rsp == 1)
{
err_code = adv_report_parse(BLE_GAP_AD_TYPE_16BIT_SERVICE_UUID_MORE_AVAILABLE,
&adv_data,
&type_data);
}
and set a breakpoint in the "{ }", but the code execute don't stop in this point.
why the ble_app_hrs_c code running on the central(s120) can't receive scanrsp data?