The Generic Access Profile (GAP) is responsible for all connecting, advertising, scanning, and connection updating operations.
#include "host/ble_hs.h"
Function | Description |
---|---|
ble_gap_adv_active | Indicates whether an advertisement procedure is currently in progress. |
ble_gap_adv_rsp_set_data | Configures the data to include in subsequent scan responses. |
ble_gap_adv_rsp_set_fields | Configures the fields to include in subsequent scan responses. |
ble_gap_adv_set_data | Configures the data to include in subsequent advertisements. |
ble_gap_adv_set_fields | Configures the fields to include in subsequent advertisements. |
ble_gap_adv_set_phys | [experimental] Configures primary and secondary PHYs to use in subsequent extended advertisements from Bluetooth 5. |
ble_gap_adv_set_tx_power | [experimental] Configures Tx Power level to use in subsequent extended advertisements from Bluetooth 5. |
ble_gap_adv_start | Initiates advertising. |
ble_gap_adv_stop | Stops the currently-active advertising procedure. |
ble_gap_conn_active | Indicates whether a connect procedure is currently in progress. |
ble_gap_conn_cancel | Aborts a connect procedure in progress. |
ble_gap_conn_find | Searches for a connection with the specified handle. |
ble_gap_conn_rssi | Retrieves the most-recently measured RSSI for the specified connection. |
ble_gap_connect | Initiates a connect procedure. |
ble_gap_ext_connect | [experimental] Same as above but using extended connect from Bluetooth 5. |
ble_gap_disc | Performs the Limited or General Discovery Procedures. |
ble_gap_ext_disc | [experimental] Same as above but using extended advertising from Bluetooth 5. |
ble_gap_disc_active | Indicates whether a discovery procedure is currently in progress. |
ble_gap_disc_cancel | Cancels the discovery procedure currently in progress. |
ble_gap_security_initiate | Initiates the GAP encryption procedure. |
ble_gap_set_event_cb | Configures a connection to use the specified GAP event callback. |
ble_gap_terminate | Terminates an established connection. |
ble_gap_update_params | Initiates a connection parameter update procedure. |
ble_gap_wl_set | Overwrites the controller's white list with the specified contents. |
ble_gap_set_priv_mode | Set privacy mode for peer device. |
ble_gap_read_le_phy | Read PHY on the connections. |
ble_gap_set_prefered_default_le_phy | Set default prefered PHY mode for new connections. |
ble_gap_set_prefered_le_phy | Set prefered PHY mode for the connections. |