AIROC™ BTSDK v4.9 - Documentation | ||||
GATT Profile Common Functions. More...
Functions | |
wiced_bt_gatt_status_t | wiced_bt_gatt_register (wiced_bt_gatt_cback_t *p_gatt_cback) |
Function wiced_bt_gatt_register. More... | |
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) |
Function wiced_bt_gatt_le_connect. More... | |
wiced_bool_t | wiced_bt_gatt_bredr_connect (wiced_bt_device_address_t bd_addr) |
Function wiced_bt_gatt_bredr_connect. More... | |
wiced_bool_t | wiced_bt_gatt_cancel_connect (wiced_bt_device_address_t bd_addr, wiced_bool_t is_direct) |
Function wiced_bt_gatt_cancel_connect. More... | |
wiced_bt_gatt_status_t | wiced_bt_gatt_disconnect (uint16_t conn_id) |
Function wiced_bt_gatt_disconnect. More... | |
wiced_bool_t | wiced_bt_gatt_listen (wiced_bool_t start, wiced_bt_device_address_t bd_addr) |
Function wiced_bt_gatt_listen. More... | |
uint8_t | wiced_bt_gatt_get_uncompleted_tx_packet_count (uint16_t conn_id) |
Function wiced_bt_gatt_get_uncompleted_tx_packet_count. More... | |
GATT Profile Common Functions.
wiced_bool_t wiced_bt_gatt_bredr_connect | ( | wiced_bt_device_address_t | bd_addr | ) |
Function wiced_bt_gatt_bredr_connect.
Open GATT over BR/EDR connection to a remote device Result is notified using GATT_CONNECTION_STATUS_EVT of wiced_bt_gatt_cback_t.
[in] | bd_addr | : Remote device address |
wiced_bool_t wiced_bt_gatt_cancel_connect | ( | wiced_bt_device_address_t | bd_addr, |
wiced_bool_t | is_direct | ||
) |
Function wiced_bt_gatt_cancel_connect.
Cancel initiating GATT connecton
[in] | bd_addr | : Remote device addresss |
[in] | is_direct | : Is direct connection or not |
wiced_bt_gatt_status_t wiced_bt_gatt_disconnect | ( | uint16_t | conn_id | ) |
Function wiced_bt_gatt_disconnect.
Close the specified GATT connection. Result is notified using GATT_CONNECTION_STATUS_EVT of wiced_bt_gatt_cback_t.
[in] | conn_id | : GATT connection ID |
uint8_t wiced_bt_gatt_get_uncompleted_tx_packet_count | ( | uint16_t | conn_id | ) |
Function wiced_bt_gatt_get_uncompleted_tx_packet_count.
Get the count of uncompleted transmitting packets in the controller.
[in] | conn_id | : connection identifier. |
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 | ||
) |
Function 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.
[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 |
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 / SELECTIVE) using wiced_bt_ble_set_background_connection_type API
wiced_bool_t wiced_bt_gatt_listen | ( | wiced_bool_t | start, |
wiced_bt_device_address_t | bd_addr | ||
) |
Function wiced_bt_gatt_listen.
Start or stop LE advertisement and listen for connection.
[in] | start | : TRUE to add device to Filter Accept List / FALSE to remove |
[in] | bd_addr | : Device to add/remove from Filter Accept List |
wiced_bt_gatt_status_t wiced_bt_gatt_register | ( | wiced_bt_gatt_cback_t * | p_gatt_cback | ) |
Function wiced_bt_gatt_register.
Register an application callback for GATT.
[in] | p_gatt_cback | : The GATT notification callback |