esp_hf_client_reject_call() function
Reject an incoming call or terminate an ongoing call(send AT+CHUP command). As a precondition to use this API, Service Level Connection shall exist with AG.
Return value
- ESP_OK: the call rejecting is sent to lower layer - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled - ESP_FAIL: others
esp_hf_client_reject_call() calls 2 functions:
![]()
esp_hf_client_reject_call()
esp_hf_client_reject_call() reads 5 variables and writes 3 variables:
![]()
esp_hf_client_reject_call()