Hello
I wonder how to verify that teh scan response data is set correctly and if there are other parameters I need to set to get it working.
So for setting length i have this:
static ble_gap_adv_data_t m_adv_data = { .adv_data = { .p_data = m_enc_advdata, .len = BLE_GAP_ADV_SET_DATA_SIZE_MAX }, .scan_rsp_data = { .p_data = m_enc_scan_response_data, .len = BLE_GAP_ADV_SET_DATA_SIZE_MAX } };
and in advertising_init() I set this
m_adv_data.scan_rsp_data.p_data = adv_data_scan_response; m_adv_data.scan_rsp_data.len = 18; err_code = ble_advdata_encode(&advdata, m_adv_data.adv_data.p_data, &m_adv_data.adv_data.len); APP_ERROR_CHECK(err_code);
Is there someting else I need to set to get this working?
On second device which I am using to verify data I receive I am using:
NRF_LOG_INFO("Scan response status = %d", p_scan_evt->params.filter_match.p_adv_report->type.scan_response);
in NRF_BLE_SCAN_EVT_FILTER_MATCH, but the output is 0.
Thaks for help