esp_hf_client_connect_audio() function
Create 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: connect audio request is sent to lower layer - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled - ESP_FAIL: others
Examples
esp_hf_client_connect_audio() is referenced by 1 libraries and example projects: