EATT

group gatt_eatt_functions

EATT API.

Functions

uint32_t wiced_bt_gatt_eatt_register(wiced_bt_gatt_eatt_callbacks_t *p_gatt_cback, uint32_t max_eatt_bearers)

Register an application callback for GATT.

Return

Number of (legacy + eatt) bearers allocated

Parameters
  • [in] p_gatt_cback: : The GATT notification callback

  • [in] max_eatt_bearers: : Total number of gatt bearers allowed across all devices (legacy + eatt)

wiced_result_t wiced_bt_gatt_eatt_connect(uint16_t legacy_conn_id, uint32_t mtu, uint32_t mps, uint32_t num_bearers, wiced_bt_eatt_drbs ppDRBs, wiced_bt_gatt_eatt_conn_id_list conn_id_list_out)

API to create the enhanced gatt channels, using the legacy/unenhanced connection id.

Return

wiced_result_t

Parameters
  • [in] legacy_conn_id: : GATT DB characteristic handle

  • [in] mtu: : EATT bearer Maximum Transmission Unit

  • [in] mps: : EATT bearer Maximum PDU Payload Size

  • [in] num_bearers: : Number of EATT bearers to be established in this call

  • [in] ppDRBs: : Data Receive Buffers, each of MTU size for each of the bearers to be established

  • [out] conn_id_list_out: : Connection Ids created for the EATT bearers

wiced_result_t wiced_bt_gatt_eatt_connect_response(wiced_bt_gatt_eatt_connection_indication_event_t *p_indication, wiced_bt_gatt_eatt_connection_response_t *p_response, wiced_bt_gatt_eatt_conn_id_list conn_id_list_out)

API to create the respond to the enhanced gatt channels connection indication.

Return

characteristic descriptor handle

Parameters

wiced_result_t wiced_bt_gatt_eatt_reconfigure(wiced_bt_gatt_eatt_conn_id_list conn_id_list, uint32_t num_bearers, uint32_t mtu, uint32_t mps, wiced_bt_eatt_drbs ppDRBs)

API the reconfigure the enhanced gatt channels.

Return

wiced_result_t

Parameters
  • [in] conn_id_list: : wiced_bt_gatt_eatt_conn_id_list to be reconfigured

  • [in] num_bearers: : Number of bearers in the conn_ids list

  • [in] mtu: : New MTU (Maximum Transmission Unit) value

  • [in] mps: : New MPS (Maximum Protocol Size) value

  • [in] ppDRBs: : New pointers to the DRBs, each of size MTU for each of bearer in the conn_id_list