Hi,
We are migrating code from NRF Connect sdk 1.3.1 on nRF52840 to NRF Connect 1.6.1 on Nrf5340. Using SoftDevice as BLE controller on both.
Our existing code uses a whitelist and auto connection to periodically check for devices to connect to. Once connected we receive a continuous stream of data from each connected device via bt_gatt_subscribe and notify callbacks.
What we are seeing on the nRF5340 is once the first device is connected and starts getting data on the notify callback, as soon as the next call to bt_conn_le_create_auto() happens the notify callbacks for the existing connect stop. This happens even when we have only one peripheral i.e. it is not a second connection that causes the problem, just the resumption of scanning via the auto-connect call.
The BLE configuration is:
CONFIG_BT_CTLR_LLPM=n
CONFIG_BT_DEVICE_NAME="VRS"
CONFIG_BT=y
CONFIG_BT_DEBUG_LOG=y
CONFIG_BT_SMP=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_CENTRAL=y
CONFIG_BT_MAX_CONN=4
CONFIG_BT_SCAN=y
CONFIG_BT_SCAN_FILTER_ENABLE=y
CONFIG_BT_SCAN_UUID_CNT=1
CONFIG_BT_GATT_CLIENT=y
CONFIG_BT_GATT_DM=y
CONFIG_BT_LL_SOFTDEVICE_VS_INCLUDE=y
CONFIG_BT_LL_SOFTDEVICE=y
CONFIG_BT_HCI_VS_EVT_USER=y
CONFIG_HEAP_MEM_POOL_SIZE=2048
CONFIG_BT_GAP_PERIPHERAL_PREF_PARAMS=n
Do you know what we might be doing wrong?