File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -47,12 +47,18 @@ static void pairing_confirm(struct bt_conn *conn)
4747 printk ("Pairing confirmed: %s\n" , addr );
4848}
4949
50+ static uint32_t app_passkey (struct bt_conn * conn )
51+ {
52+ return bt_mesh_le_pair_resp_passkey_get ();
53+ }
54+
5055static struct bt_conn_auth_cb auth_cb = {
5156 /* Enable passkey_display callback to enable the display capability. */
5257 .passkey_display = passkey_display ,
5358 /* These 2 callbacks are required for passkey_display callback. */
5459 .cancel = cancel ,
5560 .pairing_confirm = pairing_confirm ,
61+ .app_passkey = app_passkey ,
5662};
5763
5864static void pairing_complete (struct bt_conn * conn , bool bonded )
Original file line number Diff line number Diff line change 11CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW_AUTHEN=y
22CONFIG_BT_SMP=y
3- CONFIG_BT_FIXED_PASSKEY =y
3+ CONFIG_BT_APP_PASSKEY =y
44CONFIG_BT_MESH_LE_PAIR_RESP=y
55CONFIG_BT_SMP_SC_ONLY=y
66CONFIG_BT_SMP_ALLOW_UNAUTH_OVERWRITE=n
You can’t perform that action at this time.
0 commit comments