esp_hf_client_connect() function
Establish a Service Level Connection to remote bluetooth HFP audio gateway(AG) device. 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: connect request is sent to lower layer - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled - ESP_FAIL: others
esp_hf_client_connect() calls 2 functions:
![]()
esp_hf_client_connect()
esp_hf_client_connect() reads 6 variables and writes 3 variables:
![]()
esp_hf_client_connect()