eventParam for CY_BLE_EVT_GATT_CONNECT_IND

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello,

When CY_BLE_EVT_GATT_CONNECT_IND event happen, BLE Stack stock a value into attid and bdhandle of eventParam.

Although I read PDL documentation, I cannot understood what value is stocked.

Please let me know the detail of them.

Best regards,

0 Likes
1 Solution
Yugandhar
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 5 likes given

Hello,

The struct cy_stc_ble_conn_handle_t has two data fields which are bdHandle and attId.

1. The data field bdHandle will Identifies the peer device(s) bonded or currently connected. The BLE Stack supports CY_BLE_GAP_MAX_BONDED_DEVICE+CY_BLE_MAX_CONNECTION_INSTANCES devices. First device connected is assigned value (CY_BLE_GAP_MAX_BONDED_DEVICE +CY_BLE_MAX_CONNECTION_INSTANCES)-1. If one device is already present in the Bonded Devices List, then the current device will be assigned the value(CY_BLE_GAP_MAX_BONDED_DEVICE+CY_BLE_MAX_CONNECTION_INSTANCES)-2, otherwise (CY_BLE_GAP_MAX_BONDED_DEVICE+CY_BLE_MAX_CONNECTION_INSTANCES)-1.

2. The data field attId will identifies the active ATT connection instance i.e., if we define maximum number of connections as 3 then this value will be 2.

Thanks,

P Yugandhar.

View solution in original post

0 Likes
1 Reply
Yugandhar
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 5 likes given

Hello,

The struct cy_stc_ble_conn_handle_t has two data fields which are bdHandle and attId.

1. The data field bdHandle will Identifies the peer device(s) bonded or currently connected. The BLE Stack supports CY_BLE_GAP_MAX_BONDED_DEVICE+CY_BLE_MAX_CONNECTION_INSTANCES devices. First device connected is assigned value (CY_BLE_GAP_MAX_BONDED_DEVICE +CY_BLE_MAX_CONNECTION_INSTANCES)-1. If one device is already present in the Bonded Devices List, then the current device will be assigned the value(CY_BLE_GAP_MAX_BONDED_DEVICE+CY_BLE_MAX_CONNECTION_INSTANCES)-2, otherwise (CY_BLE_GAP_MAX_BONDED_DEVICE+CY_BLE_MAX_CONNECTION_INSTANCES)-1.

2. The data field attId will identifies the active ATT connection instance i.e., if we define maximum number of connections as 3 then this value will be 2.

Thanks,

P Yugandhar.

0 Likes