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_PERIPHERAL_PREF_TIMEOUT

Peripheral preferred supervision timeout in 10ms units

Type: int

Help

It is up to user to provide valid timeout which pass required minimum
value: in milliseconds it shall be larger than
"(1+ Conn_Latency) * Conn_Interval_Max * 2"
where Conn_Interval_Max is given in milliseconds.
Range 3200 to 65534 is invalid. 65535 represents no specific value.

Direct dependencies

BT_GAP_PERIPHERAL_PREF_PARAMS && BT_CONN && BT_HCI_HOST && BT_HCI && BT

(Includes any dependencies from ifs and menus.)

Default

  • 42

Kconfig definition

At subsys/bluetooth/host/Kconfig.gatt:181

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

Menu path: (Top) → Sub Systems and OS Services → Bluetooth → ATT and GATT Options → Configure peripheral preferred connection parameters

config BT_PERIPHERAL_PREF_TIMEOUT
    int "Peripheral preferred supervision timeout in 10ms units"
    range 10 65535
    default 42
    depends on BT_GAP_PERIPHERAL_PREF_PARAMS && BT_CONN && BT_HCI_HOST && BT_HCI && BT
    help
      It is up to user to provide valid timeout which pass required minimum
      value: in milliseconds it shall be larger than
      "(1+ Conn_Latency) * Conn_Interval_Max * 2"
      where Conn_Interval_Max is given in milliseconds.
      Range 3200 to 65534 is invalid. 65535 represents no specific value.

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