esp_hf_ag_reject_call() function
Reject Incoming Call from AG. 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
number
number of the incoming call
call_addr_type
call address type
Return value
- ESP_OK: reject incoming call is sent to lower layer - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled - ESP_FAIL: others
Examples
esp_hf_ag_reject_call() is referenced by 1 libraries and example projects: