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_DEVICE_NAME_MAX

Maximum size in bytes for device name

Type: int

Help

Bluetooth device name storage size. Storage can be up to 248 bytes
long (excluding NULL termination).

Direct dependencies

BT_DEVICE_NAME_DYNAMIC && BT_HCI_HOST && BT_HCI && BT

(Includes any dependencies from ifs and menus.)

Default

  • 28

Kconfig definition

At subsys/bluetooth/host/Kconfig:515

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

Menu path: (Top) → Sub Systems and OS Services → Bluetooth → Allow to set Bluetooth device name on runtime

config BT_DEVICE_NAME_MAX
    int "Maximum size in bytes for device name"
    range 2 248
    default 28
    depends on BT_DEVICE_NAME_DYNAMIC && BT_HCI_HOST && BT_HCI && BT
    help
      Bluetooth device name storage size. Storage can be up to 248 bytes
      long (excluding NULL termination).

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