Bluetooth Host Stack Library
LE (Bluetooth Low Energy)

General Description

LE (Bluetooth Low Energy) Specific functions.

Functions

wiced_bool_t wiced_bt_gatt_le_connect (wiced_bt_device_address_t bd_addr, wiced_bt_ble_address_type_t bd_addr_type, wiced_bt_ble_conn_mode_t conn_mode, wiced_bool_t is_direct)
 Open GATT over LE connection to a remote device Result is notified using GATT_CONNECTION_STATUS_EVT of wiced_bt_gatt_cback_t. More...
 

Function Documentation

◆ wiced_bt_gatt_le_connect()

wiced_bool_t wiced_bt_gatt_le_connect ( wiced_bt_device_address_t  bd_addr,
wiced_bt_ble_address_type_t  bd_addr_type,
wiced_bt_ble_conn_mode_t  conn_mode,
wiced_bool_t  is_direct 
)

Open GATT over LE connection to a remote device Result is notified using GATT_CONNECTION_STATUS_EVT of wiced_bt_gatt_cback_t.

Parameters
[in]bd_addr: Remote device address
[in]bd_addr_typePublic or random address
[in]conn_mode: connection scan mode
[in]is_direct: Is direct connection or not
Returns
TRUE : If connection started FALSE : If connection start failure

NOTE : If is_direct = WICED_FALSE, it will create background connection. Default Background connection type is BTM_BLE_CONN_NONE. Before calling wiced_bt_gatt_le_connect please set background connection type (AUTO) using wiced_bt_ble_set_background_connection_type API