esp_hf_ag_devices_status_indchange() function
Unsolicited send device status notification to HFP Client. As a precondition to use this API, Service Level Connection shall exist with HFP client.
Arguments
remote_addr
remote bluetooth device address
call_setup_state
call setup state
ntk_state
network service state
signal
int) __attribute__((
deprecated("Please use esp_hf_ag_ciev_report"
signal strength from 0 to 5
Return value
- ESP_OK: device status notification is sent to lower layer - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled - ESP_ERR_INVALID_ARG: if arguments are invalid - ESP_FAIL: others