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.

@note The advertising data is not automatically updated. 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 after the call to this function.

@kconfig_dep{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.