- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have a PSOC4 BLE acting as a GAP peripheral device. In my application, the peripheral device can initiate a disconnect from its peer as well as receive a disconnect from the peer device. I invoke the CyBle_GapDisconnect function to send the request. I receive a CYBLE_EVT_GAP_DEVICE_DISCONNECTED event after issuing the disconnect request or when the peer device sends a disconnect. According to the BLE component datasheet, a pointer to a uint8 disconnect reason code is returned with the event. I cannot find in the documentation or in the BLE component header files where this reason code is defined. I am overlooking something?
Thanks,
Jason
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
From the datasheet -
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Dana,
Maybe I was not clear in my explaination. What I cannot find in the datasheet or header files are the disconnect reason codes passed to the BLE event handler callback function with a CYBLE_EVT_GAP_DEVICE_DISCONNECTED event. These codes are refered to on page 206 of the datasheet in the description of the event.
Thanks,
Jason
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can get the list of errors in the the section 1.3, Part D, vol 2 in BLE 4.1 spec.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you. This is exactly what I was looking for.
Jason