Missing CY_BLE_EVT_GAP_DEVICE_DISCONNECTED in PSOC 6

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

cross mob
RaMu_4639021
Level 1
Level 1
5 replies posted 5 sign-ins First reply posted

We are using CY_BLE_EVT_GAP_DEVICE_DISCONNECTED to know if the peripheral got disconnected. On CY_BLE_EVT_GAP_DEVICE_DISCONNECTED we perform connection cleanup, but we noticed on one time the peripheral disconnected but it seems like we missed or didn't get CY_BLE_EVT_GAP_DEVICE_DISCONNECTED.

 

Is it expected not to get CY_BLE_EVT_GAP_DEVICE_DISCONNECTED event when device disconnect? Is there way to manually check if BLE stack properly disconnected?

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

Hello,

Could you please let me know how you are checking that the peripheral is actually disconnected ? CY_BLE_EVT_GAP_DEVICE_DISCONNECTED event will ge generated when the device is disconnected from remote device or failed to establish connection. You can also check "CY_BLE_EVT_GATT_DISCONNECT_IND" GATT event which will be generated when the GATT is disconnected.

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,

Could you please let me know how you are checking that the peripheral is actually disconnected ? CY_BLE_EVT_GAP_DEVICE_DISCONNECTED event will ge generated when the device is disconnected from remote device or failed to establish connection. You can also check "CY_BLE_EVT_GATT_DISCONNECT_IND" GATT event which will be generated when the GATT is disconnected.

Thanks,
P Yugandhar.

0 Likes