esp_avrc_ct_send_set_absolute_volume_cmd() function
Send set absolute volume command to AVRCP target. This function should be called after ESP_AVRC_CT_CONNECTION_STATE_EVT is received and AVRCP connection is established.
transaction label, 0 to 15, consecutive commands should use different values
volume
volume, 0 to 0x7f, means 0% to 100%
Return value
- ESP_OK: success - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled - ESP_ERR_NOT_SUPPORTED: if the event_id is not supported in current implementation - ESP_FAIL: others
Examples
esp_avrc_ct_send_set_absolute_volume_cmd() is referenced by 1 libraries and example projects: