A.3 Events
This section details the events relating to the GAP layer that can return to the application from the Bluetooth Low Energy stack. Some of these events pass directly to the application and some are handled by the GAPRole or GAPBondMgr layers. Whether they are handled by the GAPRole or GAPBondmgr layers, they pass as a GAP_MSG_EVENT with a header:
The following is a list of the possible headers and the associated events. For other definitions in these events, see gap.h.
- GAP_DEVICE_INIT_DONE_EVENT: Sent when the Device Initialization completes.
- GAP_DEVICE_DISCOVERY_EVENT: Sent when the Device Discovery Process completes.
- GAP_ADV_DATA_UPDATE_DONE_EVENT: Sent when the Advertising Data or SCAN_RSP Data is updated.
- GAP_MAKE_DISCOVERABLE_DONE_EVENT: Sent when the Make Discoverable Request is complete.
- GAP_END_DISCOVERABLE_DONE_EVENT: Sent when the Advertising ends.
- GAP_LINK_ESTABLISHED_EVENT: Sent when the Establish Link Request completes.
- GAP_LINK_TERMINATED_EVENT: Sent when a connection terminates.
- GAP_LINK_PARAM_UPDATE_EVENT: Sent when an Update Parameters Event is received.
- GAP_RANDOM_ADDR_CHANGED_EVENT: Sent when a random address changes.
- GAP_SIGNATURE_UPDATED_EVENT: Sent when the signature counter of the device updates.
- GAP_AUTHENTICATION_COMPLETE_EVENT: Sent when the Authentication (pairing) process completes.
- GAP_PASSKEY_NEEDED_EVENT: Sent when a Passkey is needed. This is part of the pairing process.
- GAP_SLAVE_REQUESTED_SECURITY_EVENT: Sent when a Slave Security Request is received.
- GAP_DEVICE_INFO_EVENT: Sent during the Device Discovery Process when a device is discovered.
- GAP_BOND_COMPLETE_EVENT: Sent when the bonding process completes.
- GAP_PAIRING_REQ_EVENT: Sent when an unexpected Pairing Request is received.