esp_hf_client_send_btrh_cmd() function
Send response and hold action command(Send AT+BTRH command) As a precondition to use this API, Service Level Connection shall exist with AG.
Arguments
btrh
response and hold action to send
Return value
- ESP_OK: command AT+BTRH is sent to lower layer - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled - ESP_FAIL: others
esp_hf_client_send_btrh_cmd() calls 2 functions:
![]()
esp_hf_client_send_btrh_cmd()
esp_hf_client_send_btrh_cmd() reads 6 variables and writes 4 variables:
![]()
esp_hf_client_send_btrh_cmd()