Advertising filter policies
C
#define BLE_GAP_ADV_FILTER_DEFAULT (0x00U) #define BLE_GAP_ADV_FILTER_SCAN (0x01U) #define BLE_GAP_ADV_FILTER_CONNECT (0x02U) #define BLE_GAP_ADV_FILTER_SCAN_CONNECT (0x03U)
Description
Defines the policies for filtering advertising packets.
Macro Definition
Macro | Description |
---|---|
BLE_GAP_ADV_FILTER_DEFAULT | No filter applied. Process scan and connection requests from all devices. |
BLE_GAP_ADV_FILTER_SCAN | Filter applied to scan requests. Process connection requests from all devices and scan requests only from devices in the filter accept list. |
BLE_GAP_ADV_FILTER_CONNECT | Filter applied to connection requests. Process scan requests from all devices and connection requests only from devices in the filter accept list. |
BLE_GAP_ADV_FILTER_SCAN_CONNECT | Filter applied to both scan and connection requests. Process requests only from devices in the filter accept list. |