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

GATT Profile Server Functions. More...

Modules

 Client
 GATT Profile Client Functions.
 

Functions

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. More...
 
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. More...
 
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. More...
 
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. More...
 
wiced_bt_obex_status_t wiced_bt_obex_start_server (wiced_bt_obex_start_params_t *p_params, wiced_bt_obex_handle_t *p_handle)
 Function wiced_bt_obex_start_server. More...
 
wiced_bt_obex_status_t wiced_bt_obex_stop_server (wiced_bt_obex_handle_t handle)
 Function wiced_bt_obex_stop_server. More...
 
wiced_bt_obex_status_t wiced_bt_obex_send_response (wiced_bt_obex_handle_t handle, wiced_bt_obex_req_code_t req_code, wiced_bt_obex_rsp_code_t rsp_code, uint8_t *p_pkt)
 Function wiced_bt_obex_send_rsp. More...
 
uint16_t wiced_bt_obex_get_peer_addr (wiced_bt_obex_handle_t handle, wiced_bt_device_address_t bd_addr)
 Function wiced_bt_obex_get_peer_addr. More...
 

Detailed Description

GATT Profile Server Functions.

OBEX Server Functions.

Server API Functions sub module for GATT.

Server API Functions sub module for OBEX.

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
uint16_t wiced_bt_obex_get_peer_addr ( wiced_bt_obex_handle_t  handle,
wiced_bt_device_address_t  bd_addr 
)

Function wiced_bt_obex_get_peer_addr.

This function is called to get the Bluetooth address of the connected device

Parameters
[in]handle: OBEX server handle
[out]bd_addr: Remote BD address
Returns
L2CAP channel ID
wiced_bt_obex_status_t wiced_bt_obex_send_response ( wiced_bt_obex_handle_t  handle,
wiced_bt_obex_req_code_t  req_code,
wiced_bt_obex_rsp_code_t  rsp_code,
uint8_t *  p_pkt 
)

Function wiced_bt_obex_send_rsp.

Send response to a Request from an OBEX client.

Parameters
[in]handle: OBEX server handle
[in]req_code: Request code
[in]rsp_code: Response code
[in]p_pkt: Response packet
Returns
wiced_bt_obex_status_t
wiced_bt_obex_status_t wiced_bt_obex_start_server ( wiced_bt_obex_start_params_t p_params,
wiced_bt_obex_handle_t *  p_handle 
)

Function wiced_bt_obex_start_server.

Start OBEX server

Parameters
[in]p_params: Parameters for starting server
[out]p_handle: Pointer to return OBEX server handle
Returns
wiced_bt_obex_status_t
wiced_bt_obex_status_t wiced_bt_obex_stop_server ( wiced_bt_obex_handle_t  handle)

Function wiced_bt_obex_stop_server.

Stop OBEX server

Parameters
[in]handle: OBEX server handle
Returns
wiced_bt_obex_status_t