GAP Disconnect Event Reason Code | Cypress Semiconductor
GAP Disconnect Event Reason Code
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?