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

BLE pairing mode question

BOARD:PCA10028 SDK nRF51_SDK_9.0.0_2e23562 Application is 1/central 8/periphearl Example \examples\ble_central\ble_app_hrs_c & \examples\ble_peripheral\ble_app_hrs this example central & peripheral is auto bonding(if peripheral never bonding) Question: I want application is when peripheral broadcast bonding request need Central press a button to accept bonding request. So, could you provide example to reference, thx.

Parents
  • The peripheral can only send a security request, please see this.

    It is always the central that sends the pairing request, please see this.

    ble_app_hrs doesn't not send a security request.

    ble_app_hrs_c sends the pairing request, or calls sd_ble_gap_authenticate(). It is trigger by dm_security_setup_req() in hrs_c_evt_handler. I guess you could use a button to trigger a call dm_security_setup_req() instead.

Reply
  • The peripheral can only send a security request, please see this.

    It is always the central that sends the pairing request, please see this.

    ble_app_hrs doesn't not send a security request.

    ble_app_hrs_c sends the pairing request, or calls sd_ble_gap_authenticate(). It is trigger by dm_security_setup_req() in hrs_c_evt_handler. I guess you could use a button to trigger a call dm_security_setup_req() instead.

Children
Related