I am trying to make a custom project by referring the sample WATCH project provided as an example in ModusToolbox. I am doing this by extracting only the AVDT, AVRCP CT & TG APIs and neglecting all HCI related code. when I try to connect with peer with API wiced_bt_avdt_connect_req(), I am getting AVDT_DISCONNECT_IND_EVT in the callback. And also I am getting the Bluetooth management callback event BTM_SECURITY_FAILED_EVT sometimes. I have set like this av_app_cb.avdt_register.sec_mask = BTM_SEC_NONE; Please let me know if there's any potential cause for AVDT_DISCONNECT_IND_EVT and BTM_SECURITY_FAILED_EVT to happen.
Solved! Go to Solution.
Thank you, for your reply. I am using that function, but I am getting AVDT_DISCONNECT_IND_EVT in the callback i.e. av_app_connect_request_cback.