esp_hf_client_disconnect_audio() function
Release the established audio connection with remote HFP AG. As a precondition to use this API, Service Level Connection shall exist with AG.
Arguments
remote_bda
remote bluetooth device address
Return value
- ESP_OK: disconnect audio request is sent to lower layer - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled - ESP_FAIL: others
esp_hf_client_disconnect_audio() calls 2 functions:
![]()
esp_hf_client_disconnect_audio()
esp_hf_client_disconnect_audio() reads 6 variables and writes 3 variables:
![]()
esp_hf_client_disconnect_audio()