Function esp_idf_svc::sys::esp_bt_dev_set_device_name

source ยท
pub unsafe extern "C" fn esp_bt_dev_set_device_name(
    name: *const i8,
) -> i32
Expand description

@brief Set bluetooth device name. This function should be called after esp_bluedroid_enable() completes successfully.

             A BR/EDR/LE device type shall have a single Bluetooth device name which shall be
             identical irrespective of the physical channel used to perform the name discovery procedure.

@param[in] name : device name to be set

@return - ESP_OK : Succeed - ESP_ERR_INVALID_ARG : if name is NULL pointer or empty, or string length out of limit - ESP_ERR_INVALID_STATE : if bluetooth stack is not yet enabled - ESP_FAIL : others