AIROC™ BTSDK v4.8 - Documentation | ||||
Functions | |
wiced_bool_t | wiced_bt_ble_set_background_connection_type (wiced_bt_ble_conn_type_t conn_type, wiced_bt_ble_selective_conn_cback_t *p_select_cback) |
Sets the local devices background connection procedure. More... | |
wiced_bool_t | wiced_bt_ble_update_background_connection_device (wiced_bool_t add_remove, wiced_bt_device_address_t remote_bda) |
Add or remove a device into the list of background connections maintained. More... | |
wiced_bool_t | wiced_bt_ble_clear_filter_accept_list (void) |
Clears the ADV and scan Filter Accept Lists, as well as the background connections list. More... | |
uint8_t | wiced_bt_ble_get_filter_accept_list_size (void) |
Get the number of devices that can be held by the controller's scanner Filter Accept List. More... | |
wiced_bool_t wiced_bt_ble_clear_filter_accept_list | ( | void | ) |
Clears the ADV and scan Filter Accept Lists, as well as the background connections list.
This API will while the Filter Accept List is in use. Any ADV and scans that use the Filter Accept List, must first be stopped. Any background connections must be disconnected before this API can be used.
void |
uint8_t wiced_bt_ble_get_filter_accept_list_size | ( | void | ) |
Get the number of devices that can be held by the controller's scanner Filter Accept List.
The size of the Filter Accept List is set by the ble_filter_accept_list_size element of wiced_bt_cfg_settings_t.
void |
wiced_bool_t wiced_bt_ble_set_background_connection_type | ( | wiced_bt_ble_conn_type_t | conn_type, |
wiced_bt_ble_selective_conn_cback_t * | p_select_cback | ||
) |
Sets the local devices background connection procedure.
The setting applies to central devices that want to auto-reconnect to a small list of peripherals. Peripheral devices are added into the Filter Accept List using the API wiced_bt_ble_update_background_connection_device. Once added, this API can be called to start the connection procedure.
Using the parameter BTM_BLE_CONN_AUTO will result in the controller automatically connecting to any device it finds that is in the BG list.
Using the parameter BTM_BLE_CONN_SELECTIVE will result in any device found via a passive scan procedure being bubbled up to the p_select_cback callback. The callback simply needs to return WICED_TRUE in order to indicate to the stack that it should stop the scan and initiate a direct connection.
If a BG connection is already active, this API will not initiate a new connection.
While using this API will automatically start the background connection procedure, the internal flags it sets are also used by the API wiced_bt_gatt_le_connect. The 'is_direct' parameter of this function can be set to WICED_FALSE in order for it to utilize the background connection procedure.
[in] | conn_type |
|
[in] | p_select_cback | connection evt callback for BTM_BLE_CONN_SELECTIVE |
wiced_bool_t wiced_bt_ble_update_background_connection_device | ( | wiced_bool_t | add_remove, |
wiced_bt_device_address_t | remote_bda | ||
) |
Add or remove a device into the list of background connections maintained.
Once added, the background connection procedure is controlled using the API wiced_bt_ble_set_background_connection_type.
[in] | add_remove | WICED_TRUE==add, WICED_FALSE==remove |
[in] | remote_bda | BD_ADDR of peer device to add or remove |