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

android pairing fail.

I use it. nRF52832 PCA10040 I have coded based on NUS.

However, I failed to pair with my Android device.

Even with ble_app_uart, the result is the same.

Parents
  • Hi,

    You are setting the security status as: BLE_GAP_SEC_STATUS_PAIRING_NOT_SUPP in the line below. err_code = sd_ble_gap_sec_params_reply(m_conn_handle, BLE_GAP_SEC_STATUS_PAIRING_NOT_SUPP, NULL, NULL);

    Changing it to: err_code = sd_ble_gap_sec_params_reply(m_conn_handle, BLE_GAP_SEC_STATUS_SUCCESS, NULL, NULL);

    might solve the problem.

Reply
  • Hi,

    You are setting the security status as: BLE_GAP_SEC_STATUS_PAIRING_NOT_SUPP in the line below. err_code = sd_ble_gap_sec_params_reply(m_conn_handle, BLE_GAP_SEC_STATUS_PAIRING_NOT_SUPP, NULL, NULL);

    Changing it to: err_code = sd_ble_gap_sec_params_reply(m_conn_handle, BLE_GAP_SEC_STATUS_SUCCESS, NULL, NULL);

    might solve the problem.

Children
Related