GATT Profile Common Functions
Function wiced_bt_gatt_bredr_connect
Open GATT over BR/EDR connection to a remote device
Result is notified using <b> GATT_CONNECTION_STATUS_EVT </b> of #wiced_bt_gatt_cback_t.
- Parameters
-
[in] | bd_addr | : Remote device address |
- Returns
- TRUE : If connection started FALSE : If connection start failure
Function wiced_bt_gatt_cancel_connect
Cancel initiating GATT connecton
- Parameters
-
[in] | bd_addr | : Remote device addresss |
[in] | is_direct | : Is direct connection or not |
- Returns
- TRUE : If connection started FALSE : If connection start failure
Function wiced_bt_gatt_disconnect
Close the specified GATT connection.
Result is notified using <b> GATT_CONNECTION_STATUS_EVT </b> of #wiced_bt_gatt_cback_t.
- Parameters
-
[in] | conn_id | : GATT connection ID |
- Returns
- wiced_bt_gatt_status_t
Function wiced_bt_gatt_le_connect
Open GATT over LE connection to a remote device
Result is notified using <b> GATT_CONNECTION_STATUS_EVT </b> 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 / SELECTIVE) using wiced_bt_ble_set_background_connection_type API
Function wiced_bt_gatt_listen
Start or stop LE advertisement and listen for connection.
- Parameters
-
[in] | start | : TRUE to add device to whitelist / FALSE to remove |
[in] | bd_addr | : Device to add/remove from whitelist |
- Returns
- TRUE : Success FALSE : Failure
Function 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