This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_BT_FIXED_PASSKEY

Use a fixed passkey for pairing

Type: bool

Help

With this option enabled, the application will be able to call the
bt_passkey_set() API to set a fixed passkey. If set, the
pairing_confim() callback will be called for all incoming pairings.

Direct dependencies

BT_SMP && BT_CONN && BT_HCI_HOST && BT_HCI && BT

(Includes any dependencies from ifs and menus.)

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At subsys/bluetooth/host/Kconfig:360

Included via Kconfig:8Kconfig.zephyr:42subsys/Kconfig:9subsys/bluetooth/Kconfig:313

Menu path: (Top) → Sub Systems and OS Services → Bluetooth → Security Manager Protocol support

config BT_FIXED_PASSKEY
    bool "Use a fixed passkey for pairing"
    depends on BT_SMP && BT_CONN && BT_HCI_HOST && BT_HCI && BT
    help
      With this option enabled, the application will be able to call the
      bt_passkey_set() API to set a fixed passkey. If set, the
      pairing_confim() callback will be called for all incoming pairings.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)