Bluetooth Classicο
Bluedroidο
The following Bluedroid APIs have been deprecated and removed:
/bt/host/bluedroid/api/include/api/esp_bt_device.h
Remove
esp_err_t esp_bt_dev_set_device_name(const char *name)
Set device name API has been replaced by
esp_err_t esp_bt_gap_set_device_name(const char *name)oresp_err_t esp_ble_gap_set_device_name(const char *name). The original function has been deprecated.Remove
esp_err_t esp_bt_dev_get_device_name(void)
Get device name API has been replaced by
esp_err_t esp_bt_gap_get_device_name(void)oresp_err_t esp_ble_gap_get_device_name(void). The original function has been deprecated./bt/host/bluedroid/api/include/api/esp_spp_api.h
Remove
esp_err_t esp_spp_init(esp_spp_mode_t mode)
SPP init API has been replaced by
esp_err_t esp_spp_enhanced_init(const esp_spp_cfg_t *cfg).A new configuration structure
esp_spp_cfg_thas been introduced as a parameter foresp_spp_enhanced_init./bt/host/bluedroid/api/include/api/esp_hf_ag_api.h
Remove
esp_err_t esp_hf_ag_devices_status_indchange(...)
Sending indicator reports to the HFP client API has been replaced by
esp_hf_ag_ciev_report(...).The following Bluedroid API have been changed:
/bt/host/bluedroid/api/include/api/esp_sdp_api.h
Field
user2_ptr_lenanduser2_ptris removed in structureesp_bluetooth_sdp_hdr_overlay_t, since they are not used in SDP record creation or searching./bt/host/bluedroid/api/include/api/esp_a2dp_api.h
Field
ESP_A2D_MEDIA_CTRL_STOPis removed in structureesp_a2d_media_ctrl_t, and is replaced byESP_A2D_MEDIA_CTRL_SUSPEND.Field
sbc, m12, m24 and atracis removed and replaced bysbc_info, m12_info, m24_info and atrc_infoin structureesp_a2d_mcc_t.