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.

Parameters
  • p_gatt_cback[in] : The GATT notification callback

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

Returns

Number of (legacy + eatt) bearers allocated

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.

Parameters
  • legacy_conn_id[in] : GATT DB characteristic handle

  • mtu[in] : EATT bearer Maximum Transmission Unit

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

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

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

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

Returns

wiced_result_t

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.

Parameters
Returns

characteristic descriptor handle

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.

Parameters
  • conn_id_list[in] : wiced_bt_gatt_eatt_conn_id_list to be reconfigured

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

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

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

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

Returns

wiced_result_t