esp_a2d_source_disconnect() function
Disconnect from the remote A2DP sink device. This API must be called after esp_a2d_source_init() and before esp_a2d_source_deinit().
Arguments
remote_bda
remote bluetooth device address
Return value
- ESP_OK: disconnect request is sent to lower layer - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled - ESP_FAIL: others
Examples
esp_a2d_source_disconnect() is referenced by 1 libraries and example projects: