Hello,
We are using the A3DP Source demo code, we are using the function AUD_Open_Remote_Stream()
to start a connection to a remote sink device. It works well for most devices, but we have found cases where
a remote sink replies to the connection request, with an invalid link key, so the connection eventually fails returning:
3316174: etAUD_Stream_Open_Confirmation
3316179: Status: 3
3316183: BD_ADDR: 0x50190150368E
3316188: LINK KEY: 0x00000000000000000000000000000000
3316194: Connection failed.
which is expected, but the issue is that sometimes it takes upto 2min to receive that response.
So we want to Cancel that connection request IF it has been 20sec, and we have not received a response.
So Our question is: What function should we use to cancel the process started by AUD_Open_Remote_Stream() ?
I found AUD_Close_Stream()
but the documentation says that the function will close a currently open audio stream endpoint. So it won't work to cancel the pending process, is our understanding correct?
Thank you for your assistance.