esp_avrc_ct_send_register_notification_cmd() function
Send register notification 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.
event_id
id of events, e.g. ESP_AVRC_RN_PLAY_STATUS_CHANGE, ESP_AVRC_RN_TRACK_CHANGE, etc.
event_parameter
playback interval for ESP_AVRC_RN_PLAY_POS_CHANGED; For other events , value of this parameter is ignored.
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_register_notification_cmd() is referenced by 3 libraries and example projects: