3.3.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_db_init (const uint8_t *p_gatt_db, uint16_t gatt_db_size)
 
wiced_bt_gatt_status_t wiced_bt_gatt_send_indication (uint16_t conn_id, uint16_t attr_handle, uint16_t val_len, uint8_t *p_val)
 
wiced_bt_gatt_status_t wiced_bt_gatt_send_notification (uint16_t conn_id, uint16_t attr_handle, uint16_t val_len, uint8_t *p_val)
 
wiced_bt_gatt_status_t wiced_bt_gatt_send_response (wiced_bt_gatt_status_t status, uint16_t conn_id, uint16_t attr_handle, uint16_t attr_len, uint16_t offset, uint8_t *p_attr)
 

Detailed Description

GATT Profile Server Functions

Server API Functions sub module for GATT.

Function Documentation

wiced_bt_gatt_status_t wiced_bt_gatt_db_init ( const uint8_t *  p_gatt_db,
uint16_t  gatt_db_size 
)

Function wiced_bt_gatt_db_init

         Initialize the GATT database
Parameters
[in]p_gatt_db: First element in GATT database array
[in]gatt_db_size: Size (in bytes) of GATT database
Returns
wiced_bt_gatt_status_t
wiced_bt_gatt_status_t wiced_bt_gatt_send_indication ( uint16_t  conn_id,
uint16_t  attr_handle,
uint16_t  val_len,
uint8_t *  p_val 
)

Function wiced_bt_gatt_send_indication

         Send a handle value indication to a client
Parameters
[in]conn_id: connection identifier.
[in]attr_handle: Attribute handle of this handle value indication.
[in]val_len: Length of notification value passed.
[in]p_val: Notification Value.
Returns
wiced_bt_gatt_status_t
wiced_bt_gatt_status_t wiced_bt_gatt_send_notification ( uint16_t  conn_id,
uint16_t  attr_handle,
uint16_t  val_len,
uint8_t *  p_val 
)

Function wiced_bt_gatt_send_notification

         Send a handle value notification to a client.
Parameters
[in]conn_id: connection identifier.
[in]attr_handle: Attribute handle of this handle value indication.
[in]val_len: Length of notification value passed.
[in]p_val: Notification Value.
Returns
wiced_bt_gatt_status_t
wiced_bt_gatt_status_t wiced_bt_gatt_send_response ( wiced_bt_gatt_status_t  status,
uint16_t  conn_id,
uint16_t  attr_handle,
uint16_t  attr_len,
uint16_t  offset,
uint8_t *  p_attr 
)

Function wiced_bt_gatt_send_response

           When application receives a Read Request, Write Request or Indication from the
           peer it can reply synchronously or return a WICED_BT_GATT_PENDING result code
           indicating to the stack that the message is not processed yet.  In that case
           application should call this function to send data or just a confirmation to
           the peer.
Parameters
[in]status: Status of the operation to be send to the peer
[in]conn_id: Connection handle
[in]attr_handle: Attribute handle
[in]attr_len: Length of the attribute to send
[in]offset: Attribute value offset
[in]p_attr: Attribute Value
Returns
wiced_bt_gatt_status_t