Hello,
I am working with the nRF7002DK board for the development. My BLE peripheral device is taking time to connect with the application, and sometimes it doesn't connect on the first attempt. It usually takes 3 to 4 attempts to establish a connection. How can i reduce the BLE connection time ?
Below are the BLE configuration parameters I have used for my BLE peripheral device.
static struct bt_le_adv_param *adv_param = BT_LE_ADV_PARAM((BT_LE_ADV_OPT_CONNECTABLE | BT_LE_ADV_OPT_USE_IDENTITY | BT_LE_ADV_OPT_USE_NAME),
32, /* Min Advertising Interval 20 milliseconds (32 * 0.625ms) */
40, /* Max Advertising Interval 25 milliseconds (40 * 0.625ms) */
NULL); /* Set to NULL for undirected advertising */
/* Declare the advertising packet */
static const struct bt_data ad[] = {
/* Set the advertising flags */
BT_DATA_BYTES(BT_DATA_FLAGS, (BT_LE_AD_GENERAL | BT_LE_AD_NO_BREDR)),
BT_DATA_BYTES(4, ADV_INIT_TX_PWR),
// Correctly pass the size of the array (manuf_data)
BT_DATA(BT_DATA_MANUFACTURER_DATA, manuf_data, sizeof(manuf_data)),
};