Advertising types
C
#define BLE_GAP_ADV_TYPE_ADV_IND 0x00 #define BLE_GAP_ADV_TYPE_ADV_DIRECT_IND 0x01 #define BLE_GAP_ADV_TYPE_ADV_SCAN_IND 0x02 #define BLE_GAP_ADV_TYPE_ADV_NONCONN_IND 0x03 #define BLE_GAP_ADV_TYPE_ADV_DIRECT_LOW_IND 0x04
Description
Enumerates the different types of advertising that can be performed.
Macro Definition
Macro | Description |
---|---|
BLE_GAP_ADV_TYPE_ADV_IND | Connectable undirected advertising (ADV_IND). This is the default and most common advertising type. |
BLE_GAP_ADV_TYPE_ADV_DIRECT_IND | Connectable high duty cycle directed advertising (ADV_DIRECT_IND). Targets a specific device with high advertising frequency. |
BLE_GAP_ADV_TYPE_ADV_SCAN_IND | Scannable undirected advertising (ADV_SCAN_IND). Allows devices to request scan response data. |
BLE_GAP_ADV_TYPE_ADV_NONCONN_IND | Non-connectable undirected advertising (ADV_NONCONN_IND). Used for broadcasting data with no intention of connecting. |
BLE_GAP_ADV_TYPE_ADV_DIRECT_LOW_IND | Connectable low duty cycle directed advertising (ADV_DIRECT_IND). Similar to high duty cycle but with lower frequency. |