nRFConnect iOS APP failed to show passkey dialog with nRF52832

I use nRFConnect iOS APP to pair nRF52832 device. But it failed to show passkey dialog.

Parents Reply
  • I have added bt_conn_disconnect(conn, BT_HCI_ERR_REMOTE_USER_TERM_CONN) to pairing_failed() callback function. Now nRFConnect iOS APP can disconnect successfully.

    static void pairing_failed(struct bt_conn *conn, enum bt_security_err reason)
    {
    char addr[BT_ADDR_LE_STR_LEN];

    bt_addr_le_to_str(bt_conn_get_dst(conn), addr, sizeof(addr));
    bt_conn_disconnect(conn, BT_HCI_ERR_REMOTE_USER_TERM_CONN);
    printk("Pairing failed conn: %s, reason %d", addr, reason);
    }

Children
Related