esp_bt_dev_get_device_name() function
Get 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.
Syntax
esp_err_t esp_bt_dev_get_device_name(void) __attribute__((deprecated("Please use esp_bt_gap_get_device_name or esp_ble_gap_get_device_name"))); Return value
- ESP_OK : Succeed - ESP_ERR_INVALID_STATE : if bluetooth stack is not yet enabled - ESP_FAIL : others
![]()
esp_err_t esp_bt_dev_get_device_name(void) __attribute__((deprecated("Please use esp_bt_gap_get_device_name or esp_ble_gap_get_device_name")));
esp_bt_dev_get_device_name() calls 2 functions:
![]()
esp_bt_dev_get_device_name()
esp_bt_dev_get_device_name() reads 5 variables and writes 3 variables:
![]()
esp_bt_dev_get_device_name()