esp_hf_client_send_chld_cmd() function
Send call hold and multiparty commands, or enhanced call control commands(Use AT+CHLD). As a precondition to use this API, Service Level Connection shall exist with AG.
Arguments
chld
AT+CHLD call hold and multiparty handling AT command.
idx
used in Enhanced Call Control Mechanisms, used if chld is ESP_HF_CHLD_TYPE_REL_X or ESP_HF_CHLD_TYPE_PRIV_X
Return value
- ESP_OK: command AT+CHLD is sent to lower layer - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled - ESP_FAIL: others
esp_hf_client_send_chld_cmd() calls 2 functions:
![]()
esp_hf_client_send_chld_cmd()
esp_hf_client_send_chld_cmd() reads 6 variables and writes 5 variables:
![]()
esp_hf_client_send_chld_cmd()