When paring, I would like to know how to edit central's response data.

hi

I am developing using nRF52832 and SDK 17.0.1 (NUS).

I configured paring using BLE Name filter...

static void scan_init(void)
{

ret_code_t err_code;
nrf_ble_scan_init_t init_scan;
uint8_t i;

memset(&init_scan, 0, sizeof(init_scan));
init_scan.connect_if_match = true;
init_scan.conn_cfg_tag = APP_BLE_CONN_CFG_TAG;

err_code = nrf_ble_scan_init(&m_scan, &init_scan, scan_evt_handler);
APP_ERROR_CHECK(err_code);

err_code = nrf_ble_scan_filter_set(&m_scan, SCAN_NAME_FILTER, SSID_MASTER);
APP_ERROR_CHECK(err_code);

}

I can't find the part that modifies the central response data by peripheral advertising.

It is not even in the scan_int() function posted above.

Could you tell me which file I need to edit?

I want to send specific data in the response.

thank.

Parents Reply Children
  • Hi,

    In the process of paring, the PUD data of the peripheral's advertising was modified as desired according to the GAP type.

    And this time, we are going to change the central Request data.

    1) There is a lot of data on averting data packets, but I can't find data on request data packets...

    Is there data packet data for request and response?

    2) The purpose is to modify the actual central request data as desired.

    -> When paring, I want to pass the central version to the peripheral.

    thank

  • Hi,

    You can't fit custom data into the scan response request from the GAP central.

    pkr2258 said:
    When paring, I want to pass the central version to the peripheral.

    This has to be done after the connection has been established,

    regards

    Jared 

Related