3.0.0.0R11
Software Development Kit
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules

Functions

wiced_bt_gatt_status_t wiced_bt_gatt_configure_mtu (uint16_t conn_id, uint16_t mtu)
 
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)
 
wiced_bt_gatt_status_t wiced_bt_gatt_send_execute_write (uint16_t conn_id, wiced_bool_t is_execute)
 
wiced_bt_gatt_status_t wiced_bt_gatt_send_indication_confirm (uint16_t conn_id, uint16_t handle)
 
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)
 
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)
 

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

           Configure the ATT MTU size for a connection on an LE
           transport.
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

           Start an attribute discovery on an ATT server.
           Discovery results are notified using <b> GATT_DISCOVERY_RESULT_EVT </b>;
           completion is notified using <b> GATT_DISCOVERY_CPLT_EVT </b> 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

           Send Execute Write request to 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

           Send a handle value confirmation to remote ATT server.
           (in response to <b>GATTC_OPTYPE_INDICATION </b>  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

           Read from remote ATT server.
           Result is notified using <b> GATT_OPERATION_CPLT_EVT </b> 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

           Write to remote ATT server.
           Result is notified using <b> GATT_OPERATION_CPLT_EVT </b> 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