BLE GAP
Generic Access Profile — the framework for Bluetooth Low Energy connection roles, advertising, and pairing.
Generic Access Profile (GAP) defines Bluetooth Low Energy's device roles (central, peripheral), advertising patterns, connection negotiation, and security procedures. A BLE device operates either as an advertiser (broadcaster) sending small packets at intervals or as a scanner listening for those packets.
GAP handles discovery windows, connection parameter negotiation (latency, packet size, encryption), and pairing procedures. It is abstract enough to work with many applications but low-level enough to directly impact power consumption and response time. Classic Bluetooth's GAP is similarly named but considerably more complex.