The latest development version of this page may be more current than this released 2.7.5 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:519

Included via Kconfig:8Kconfig.zephyr:44subsys/Kconfig:9subsys/bluetooth/Kconfig:174

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.)