GATT Profile Connection Functions.
◆ wiced_bt_gatt_le_connect()
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_type | Public 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
◆ wiced_bt_gatt_register()
Register an application callback for GATT.
- Parameters
-
[in] | p_gatt_cback | : The GATT notification callback |
- Returns
- wiced_bt_gatt_status_t
◆ wiced_bt_gatt_cancel_connect()
Cancel initiating GATT connection.
- Parameters
-
[in] | bd_addr | : Remote device address |
[in] | is_direct | : Is direct connection or not |
- Returns
- TRUE : If connection started FALSE : If connection start failure
◆ wiced_bt_gatt_disconnect()
◆ wiced_bt_gatt_listen()
Start or stop LE advertisement and listen for connection.
- Parameters
-
[in] | start | : TRUE to add device to Filter Accept List / FALSE to remove |
[in] | bd_addr | : Device to add/remove from Filter Accept List |
[in] | type | : Address type of bd_addr |
- Returns
- TRUE : Success FALSE : Failure
◆ wiced_bt_gatt_get_device_address()
API to get the bluetooth device address of the connected gatt conn_id.
- Note
- : The API cannot be used to get the Bluetooth device address in case the device is disconnected
- Parameters
-
- Returns
- wiced_bt_gatt_status_t
◆ wiced_bt_gatt_get_acl_conn_handle()
uint16_t wiced_bt_gatt_get_acl_conn_handle |
( |
uint16_t |
conn_id | ) |
|
API to get the ACL handle of the connected gatt conn_id.
- Note
- : The API cannot be used to get the ACL handle in case the device is disconnected
- Parameters
-
[in] | conn_id | : Connection handle of the gatt bearer |
- Returns
- #0xffff in case of error
◆ wiced_bt_gatt_validate_conn_id()
API to validate connected gatt conn_id.
- Parameters
-
[in] | conn_id | : Connection handle of the gatt bearer |
- Returns
- wiced_bt_gatt_status_t
◆ wiced_bt_gatt_set_tx_packets_queue_size()
wiced_result_t wiced_bt_gatt_set_tx_packets_queue_size |
( |
uint8_t |
count | ) |
|
API to set the maximum queue size for GATT packets.
- Parameters
-
[in] | count | : set the number of packets to queue for tx |
- Returns
- wiced_result_t