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_SMP_APP_PAIRING_ACCEPT

Accept or reject pairing initiative

Type: bool

Help

When receiving pairing request or pairing response query the
application whether to accept to proceed with pairing or not. This is
for pairing over SMP and does not affect SSP, which will continue
pairing without querying the application.
The application can return an error code, which is translated into
a SMP return value if the pairing is not allowed.

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:293

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

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

config BT_SMP_APP_PAIRING_ACCEPT
    bool "Accept or reject pairing initiative"
    depends on BT_SMP && BT_CONN && BT_HCI_HOST && BT_HCI && BT
    help
      When receiving pairing request or pairing response query the
      application whether to accept to proceed with pairing or not. This is
      for pairing over SMP and does not affect SSP, which will continue
      pairing without querying the application.
      The application can return an error code, which is translated into
      a SMP return value if the pairing is not allowed.

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