esp_hf_client_send_dtmf() function
Transmit DTMF codes during an ongoing call(use AT+VTS commands) As a precondition to use this API, Service Level Connection shall exist with AG.
Arguments
code
dtmf code, single ascii character in the set 0-9, #, *, A-D
Return value
- ESP_OK: the DTMF codes are sent to lower layer - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled - ESP_FAIL: others
esp_hf_client_send_dtmf() calls 2 functions:
![]()
esp_hf_client_send_dtmf()
esp_hf_client_send_dtmf() reads 6 variables and writes 4 variables:
![]()
esp_hf_client_send_dtmf()