- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Solved! Go to Solution.
- Labels:
-
PSoC 6 MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.