esp-idf/docs/en/migration-guides/release-5.x/bluetooth-classic.rst
2022-07-19 18:54:51 +08:00

87 lines
3.7 KiB
ReStructuredText

Bluetooth Classic
=================
Bluedroid
---------
The following Bluedroid macros, types, and functions have been renamed:
- :component_file:`bt/host/bluedroid/api/include/api/esp_gap_ble_api.h`
- In :cpp:enum:`esp_gap_ble_cb_event_t`
- ``ESP_GAP_BLE_SET_PREFERED_DEFAULT_PHY_COMPLETE_EVT`` renamed to ``ESP_GAP_BLE_SET_PREFERRED_DEFAULT_PHY_COMPLETE_EVT``
- ``ESP_GAP_BLE_SET_PREFERED_PHY_COMPLETE_EVT`` renamed to ``ESP_GAP_BLE_SET_PREFERRED_PHY_COMPLETE_EVT``
- ``ESP_GAP_BLE_CHANNEL_SELETE_ALGORITHM_EVT`` renamed to ``ESP_GAP_BLE_CHANNEL_SELECT_ALGORITHM_EVT``
- ``esp_ble_wl_opration_t`` renamed to :cpp:enum:`esp_ble_wl_operation_t`
- ``esp_ble_gap_cb_param_t.pkt_data_lenth_cmpl`` renamed to ``pkt_data_length_cmpl``
- ``esp_ble_gap_cb_param_t.update_whitelist_cmpl.wl_opration`` renamed to ``wl_operation``
- ``esp_ble_gap_set_prefered_default_phy`` renamed to :cpp:func:`esp_ble_gap_set_preferred_default_phy`
- ``esp_ble_gap_set_prefered_phy`` renamed to :cpp:func:`esp_ble_gap_set_preferred_phy`
- :component_file:`bt/host/bluedroid/api/include/api/esp_gatt_defs.h`
- In :cpp:enum:`esp_gatt_status_t`
- ``ESP_GATT_ENCRYPED_MITM`` renamed to ``ESP_GATT_ENCRYPTED_MITM``
- ``ESP_GATT_ENCRYPED_NO_MITM`` renamed to ``ESP_GATT_ENCRYPTED_NO_MITM``
- :component_file:`bt/host/bluedroid/api/include/api/esp_hf_defs.h`
- In :cpp:enum:`esp_hf_cme_err_t`
- ``ESP_HF_CME_MEMEORY_FULL`` renamed to ``ESP_HF_CME_MEMORY_FULL``
- ``ESP_HF_CME_MEMEORY_FAILURE`` renamed to ``ESP_HF_CME_MEMORY_FAILURE``
- :component_file:`bt/host/bluedroid/api/include/api/esp_hf_ag_api.h`
- ``esp_bt_hf_init(esp_bd_addr_t remote_addr)`` changes into ``esp_hf_ag_init(void)``.
- ``esp_bt_hf_deinit(esp_bd_addr_t remote_addr)`` changes into ``esp_hf_ag_deinit(void)``
Along with this change, the `bt_bdaddr_t init` and `bt_bdaddr_t deinit` has been removed from `union btc_arg_t`.
- ``esp_bt_hf_register_callback`` is now changed into ``esp_hf_ag_register_callback``.
- ``esp_bt_hf_connect`` changes into ``esp_hf_ag_slc_connect``
- ``esp_bt_hf_disconnect`` changes into ``esp_hf_ag_slc_disconnect``
- ``esp_bt_hf_connect_audio`` changes into ``esp_hf_ag_audio_connect``
- ``esp_bt_hf_disconnect_audio`` changes into ``esp_hf_ag_audio_disconnect``
- ``esp_bt_hf_vra`` changes into ``esp_hf_ag_vra_control``
- ``esp_bt_hf_volume_control`` changes into ``esp_hf_ag_volume_control``
- ``esp_hf_unat_response`` changes into ``esp_hf_ag_unknown_at_send``
- ``esp_bt_hf_cmee_response`` changes into ``esp_hf_ag_cmee_send``
- ``esp_bt_hf_indchange_notification`` changes into ``esp_hf_ag_devices_status_indchange``
- ``esp_bt_hf_cind_response`` changes into ``esp_hf_ag_cind_response``
- ``esp_bt_hf_cops_response`` changes into ``esp_hf_ag_cops_response``
- ``esp_bt_hf_clcc_response`` changes into ``esp_hf_ag_clcc_response``
- ``esp_bt_hf_cnum_response`` changes into ``esp_hf_ag_cnum_response``
- ``esp_bt_hf_bsir`` changes into ``esp_hf_ag_bsir``
- ``esp_bt_hf_answer_call`` changes into ``esp_hf_ag_answer_call``
- ``esp_bt_hf_reject_call`` changes into ``esp_hf_ag_reject_call``
- ``esp_bt_hf_out_call`` changes into ``esp_hf_ag_out_call``
- ``esp_bt_hf_end_call`` changes into ``esp_hf_ag_end_call``
- ``esp_bt_hf_register_data_callback`` changes into ``esp_hf_ag_register_data_callback``
- ``esp_hf_outgoing_data_ready`` changes into ``esp_hf_ag_outgoing_data_ready``