esp_hf_client_disconnect() function
Disconnect from the remote HFP audio gateway. This function must be called after esp_hf_client_init() and before esp_hf_client_deinit().
Arguments
remote_bda
remote bluetooth device address
Return value
- ESP_OK: disconnect request is sent to lower layer - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled - ESP_FAIL: others
Examples
esp_hf_client_disconnect() is referenced by 1 libraries and example projects: