This group includes GAP White-List related APIs.
Get total number of white list entries that can be stored in the Controller.
- Parameters
-
[out] | size | The white-list size |
- Note
- the returned size is the maximum size of Public address white list only, Randome static address white list has the same size too
- Returns
- Upon successful completion the function shall return AT_BLE_SUCCESS, Otherwise the function shall return at_ble_status_t
Adds a peer device address to the white-list.
- Parameters
-
[in] | address | peer device address |
- Note
- This command can be used at any time except when:
- the advertising filter policy uses the white list and advertising is enabled.
- the scanning filter policy uses the white list and scanning is enabled.
- the initiator filter policy uses the white list and a create connection command is outstanding.
-
The only addresses that should be added to the white-list is Public device address or random static device address
-
In case of connection mode is AUTO, the white-list will be cleared
-
To get scan results from only peers added to white list, make sure that "filter_whitelist" argument of at_ble_scan_start is true.
- Returns
- Upon successful completion the function shall return AT_BLE_SUCCESS, Otherwise the function shall return at_ble_status_t
Referenced by app_init().
Clear the white-list.
- Returns
- Upon successful completion the function shall return AT_BLE_SUCCESS, Otherwise the function shall return at_ble_status_t
Removes a peer device address from the white-list.
- Parameters
-
[in] | address | peer device address |
- Note
- This command can be used at any time except when:
- the advertising filter policy uses the white list and advertising is enabled.
- the scanning filter policy uses the white list and scanning is enabled.
- the initiator filter policy uses the white list and a create connection command is outstanding.
- Returns
- Upon successful completion the function shall return AT_BLE_SUCCESS, Otherwise the function shall return at_ble_status_t