Hello,
I'm using an NRF5340 audio broadcast sink, and the nRF Connect SDK version is v3.4.0.
I've added ble connection related definitions to the code to allow the mobile app to connect to the NRF5340 audio broadcast sink via BLE.
CONFIG_APP_CONTROL=y CONFIG_BT_GATT_DYNAMIC_DB=y CONFIG_BT_GATT_CLIENT=y CONFIG_BT_ATT_PREPARE_COUNT=3 CONFIG_BT_GATT_ENFORCE_SUBSCRIPTION=n CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS=n CONFIG_BLE_ACL_SUP_TIMEOUT=0 CONFIG_BT_MAX_CONN=2
During testing, I found that when connected to the app through ble, the broadcast sink cannot sync with the broadcast source, and occurring "invalid parameter error."
Here is the error log.
rtt:~$ ASSERTION FAIL [attr] @ WEST_TOPDIR/zephyr/subsys/bluetooth/host/gatt.c:3343
invalid parameter
HS [00:00:23.684,265] <inf> bt_mgmt_scan: Broadcast source NRF5340_BROADCASTER found, id: 0xdffe3d
HS [00:00:23.841,583] <inf> bt_mgmt_scan: PA synced to name: NRF5340_BROADCASTER, id: 0xdffe3d, addr: 00:02:5B:00:FF:03 (public)
HS [00:00:23.847,137] <err> error_handler: Assert post action: file: WEST_TOPDIR/zephyr/subsys/bluetooth/host/gatt.c, line 3343
HS [00:00:23.847,167] <err> error_handler: Caught system error -- reason 0. Entering infinite loop
rtt:~$
However, if not connected to the app through ble, the broadcast sink can successfully sync with the broadcast source, but after syncing, it cannot connect to the app through ble.
I previously used nRF Connect SDK v2.2.0 to achieve the same functionality without this problem. How can I modify the code to allow the v3.4.0 broadcast sink to simultaneously sync with the source and connect to the app through ble?