Infineon Logo AIROC BTSDK v4.8 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

GATT Profile Client Functions. More...

Functions

wiced_bt_gatt_status_t wiced_bt_gatt_configure_mtu (uint16_t conn_id, uint16_t mtu)
 Function wiced_bt_gatt_configure_mtu. More...
 
wiced_bt_gatt_status_t wiced_bt_gatt_send_discover (uint16_t conn_id, wiced_bt_gatt_discovery_type_t discovery_type, wiced_bt_gatt_discovery_param_t *p_discovery_param)
 Function wiced_bt_gatt_send_discover. More...
 
wiced_bt_gatt_status_t wiced_bt_gatt_send_read (uint16_t conn_id, wiced_bt_gatt_read_type_t type, wiced_bt_gatt_read_param_t *p_read)
 Function wiced_bt_gatt_send_read. More...
 
wiced_bt_gatt_status_t wiced_bt_gatt_send_write (uint16_t conn_id, wiced_bt_gatt_write_type_t type, wiced_bt_gatt_value_t *p_write)
 Function wiced_bt_gatt_send_write. More...
 
wiced_bt_gatt_status_t wiced_bt_gatt_send_execute_write (uint16_t conn_id, wiced_bool_t is_execute)
 Function wiced_bt_gatt_send_execute_write. More...
 
wiced_bt_gatt_status_t wiced_bt_gatt_send_indication_confirm (uint16_t conn_id, uint16_t handle)
 Function wiced_bt_gatt_send_indication_confirm. More...
 

Detailed Description

GATT Profile Client Functions.

Function Documentation

wiced_bt_gatt_status_t wiced_bt_gatt_configure_mtu ( uint16_t  conn_id,
uint16_t  mtu 
)

Function wiced_bt_gatt_configure_mtu.

Configures the ATT MTU size for a connection on an LE transport. The allowed MTU range is 23 to max_mtu_size configured in wiced_bt_cfg_settings_t

Parameters
[in]conn_id: GATT connection handle
[in]mtu: New MTU size
Returns
wiced_bt_gatt_status_t
wiced_bt_gatt_status_t wiced_bt_gatt_send_discover ( uint16_t  conn_id,
wiced_bt_gatt_discovery_type_t  discovery_type,
wiced_bt_gatt_discovery_param_t p_discovery_param 
)

Function wiced_bt_gatt_send_discover.

Starts an attribute discovery on an ATT server. Discovery results are notified using GATT_DISCOVERY_RESULT_EVT ; completion is notified using GATT_DISCOVERY_CPLT_EVT of wiced_bt_gatt_cback_t.

Parameters
[in]conn_id: GATT connection handle
[in]discovery_type: Discover type
[in]p_discovery_param: Discover parameter
Returns
wiced_bt_gatt_status_t
wiced_bt_gatt_status_t wiced_bt_gatt_send_execute_write ( uint16_t  conn_id,
wiced_bool_t  is_execute 
)

Function wiced_bt_gatt_send_execute_write.

Sends an Execute Write request to the remote ATT server.

Parameters
[in]conn_id: Connection handle
[in]is_execute: WICED_BT_TRUE to execute, WICED_BT_FALSE to cancel
Returns
wiced_bt_gatt_status_t
wiced_bt_gatt_status_t wiced_bt_gatt_send_indication_confirm ( uint16_t  conn_id,
uint16_t  handle 
)

Function wiced_bt_gatt_send_indication_confirm.

Sends a handle value confirmation to the remote ATT server. (in response to GATTC_OPTYPE_INDICATION of wiced_bt_gatt_cback_t)

Parameters
[in]conn_id: Connection handle
[in]handle: Attribute handle
Returns
wiced_bt_gatt_status_t
wiced_bt_gatt_status_t wiced_bt_gatt_send_read ( uint16_t  conn_id,
wiced_bt_gatt_read_type_t  type,
wiced_bt_gatt_read_param_t p_read 
)

Function wiced_bt_gatt_send_read.

Reads from a remote ATT server. Thr result is notified using GATT_OPERATION_CPLT_EVT of wiced_bt_gatt_cback_t.

Parameters
[in]conn_id: Connection handle
[in]type: Type of the read
[in]p_read: Pointer to the read request parameters
Returns
wiced_bt_gatt_status_t
wiced_bt_gatt_status_t wiced_bt_gatt_send_write ( uint16_t  conn_id,
wiced_bt_gatt_write_type_t  type,
wiced_bt_gatt_value_t p_write 
)

Function wiced_bt_gatt_send_write.

Writes to remote the ATT server. The result is notified using GATT_OPERATION_CPLT_EVT of wiced_bt_gatt_cback_t.

Parameters
[in]conn_id: Connection handle
[in]type: Type of write
[in]p_write: Pointer to the write parameters
Returns
wiced_bt_gatt_status_t