esp_hf_client_answer_call() function
Answer an incoming call(send ATA command). As a precondition to use this API, Service Level Connection shall exist with AG.
Return value
- ESP_OK: a call answering is sent to lower layer - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled - ESP_FAIL: others
esp_hf_client_answer_call() calls 2 functions:
![]()
esp_hf_client_answer_call()
esp_hf_client_answer_call() reads 5 variables and writes 3 variables:
![]()
esp_hf_client_answer_call()