[nRF Connect SDK]Pairing without confirm dialog at Android side.

Target nRF52832(nrf52dk_nrf52832)
SDK NCS v1.9.1

static struct bt_conn_auth_cb conn_auth_callbacks = {
#if defined(CONFIG_BT_SMP_APP_PAIRING_ACCEPT)
.pairing_accept = auth_pairing_accept,
#endif
.passkey_display = auth_passkey_display,
.passkey_confirm = auth_passkey_confirm,
.cancel = auth_auth_cancel,
.pairing_complete = auth_pairing_complete,
.pairing_failed = auth_pairing_failed
};
#endif

bt_conn_auth_cb_register(&conn_auth_callbacks);

How can I make bonding without passkey confirm dialog Android screen.

I know those changes can make it. But it did not make bonding.
conn_auth_callbacks.passkey_display = NULL;//auth_passkey_display,
conn_auth_callbacks.passkey_confirm = NULL; //auth_passkey_confirm,
conn_auth_callbacks.pairing_confirm = NULL;//pairing_confirm,

Thanks.

Related