CYBLE_EVT_GAP_DEVICE_CONNECTED: This event is received when device is connected over GAP layer.
CYBLE_EVT_GATT_CONNECT_IND: This event is received when device is connected over GATT level
Actually, once successful connection happens after calling CyBle_GapcConnectDevice, both these events will be generated in the following order:
Hi! Is that order correct? As far as I understand, GAP is just a fancy acronym/name for how a peripheral device should connect to others (i.e. central). The device's GAP is just the device's behavior for connections, so calling it "layer" is misleading. (I may have misunderstood what GAP is).
Since GAP is about connections, shouldn't the event
CYBLE_EVT_GAP_DEVICE_CONNECTEDcome first then?
Or can a device be connected to GATT without being (for example) authenticated, and therefore not be fully connected as required by the device's GAP? (Please refer to this other post: http://www.cypress.com/forum/psoc-4-ble/pairingbondingauthentification-procedure)