esp_hf_client_volume_update() function
Volume synchronization with AG. As a precondition to use this API, Service Level Connection shall exist with AG.
Arguments
type
volume control target, speaker or microphone
volume
gain of the speaker of microphone, ranges 0 to 15
Return value
- ESP_OK: volume update is sent to lower layer - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled - ESP_FAIL: others
esp_hf_client_volume_update() calls 2 functions:
![]()
esp_hf_client_volume_update()
esp_hf_client_volume_update() reads 6 variables and writes 5 variables:
![]()
esp_hf_client_volume_update()