zephyr::raw

Function bt_set_name

Source
pub unsafe extern "C" fn bt_set_name(name: *const u8) -> i32
Expand description

@brief Set Bluetooth Device Name

Set Bluetooth GAP Device Name.

When advertising with device name in the advertising data the name should be updated by calling @ref bt_le_adv_update_data or @ref bt_le_ext_adv_set_data.

@note Requires @kconfig{CONFIG_BT_DEVICE_NAME_DYNAMIC}.

@sa @kconfig{CONFIG_BT_DEVICE_NAME_MAX}.

@param name New name, must be null terminated

@return Zero on success or (negative) error code otherwise.