esp_hf_ag_end_call() function
End an ongoing call. As a precondition to use this API, Service Level Connection shall exist with HFP client.
Arguments
remote_addr
remote bluetooth device address
num_active
the number of active call
num_held
the number of held call
call_setup_state
call setup state
call_addr_type
call address type
Return value
- ESP_OK: end an ongoing call is sent to lower layer - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled - ESP_FAIL: others
Examples
esp_hf_ag_end_call() is referenced by 1 libraries and example projects: