AIROC™ BTSDK v4.7 - Documentation | ||||
Generic Attribute (GATT) Utility Functions. More...
Generic Attribute (GATT) Utility Functions.
wiced_bt_gatt_status_t wiced_bt_util_send_gatt_discover | ( | uint16_t | conn_id, |
wiced_bt_gatt_discovery_type_t | type, | ||
uint16_t | uuid, | ||
uint16_t | s_handle, | ||
uint16_t | e_handle | ||
) |
Function wiced_bt_util_send_gatt_discover.
Format and send GATT discover request
[in] | conn_id | : connection identifier. |
[in] | type | : GATT discovery type. |
[in] | uuid | : UUID of the attribute to search for. |
[in] | s_handle | : Start handle. |
[in] | e_handle | : Start handle. |
wiced_bt_gatt_status_t wiced_bt_util_send_gatt_discover_by_uuid128 | ( | uint16_t | conn_id, |
uint8_t | uuid[LEN_UUID_128], | ||
uint16_t | s_handle, | ||
uint16_t | e_handle | ||
) |
Format and send GATT discover request.
[in] | conn_id | : connection identifier. |
[in] | uuid | : UUID128 of the attribute to search for. |
[in] | s_handle | : Start handle. |
[in] | e_handle | : Start handle. |
wiced_bt_gatt_status_t wiced_bt_util_send_gatt_read_by_handle | ( | uint16_t | conn_id, |
uint16_t | handle | ||
) |
Function wiced_bt_gatt_status_t wiced_bt_util_send_gatt_read_by_handle(uint16_t conn_id, uint16_t handle)
Format and send Read By Handle GATT request.
[in] | conn_id | : connection identifier. |
[in] | handle | : Attribute handle of the attribute to read. |
wiced_bt_gatt_status_t wiced_bt_util_send_gatt_read_by_type | ( | uint16_t | conn_id, |
uint16_t | s_handle, | ||
uint16_t | e_handle, | ||
uint16_t | uuid | ||
) |
Function wiced_bt_util_send_gatt_read_by_type.
Format and send Read by Type GATT request
[in] | conn_id | : Connection handle |
[in] | s_handle | : Start handle |
[in] | e_handle | : End handle |
[in] | uuid | : UUID of the attribute to read |
wiced_bt_gatt_status_t wiced_bt_util_set_gatt_client_config_descriptor | ( | uint16_t | conn_id, |
uint16_t | handle, | ||
uint16_t | value | ||
) |
Function wiced_bt_util_set_gatt_client_config_descriptor.
Set value of Client Configuration Descriptor
[in] | conn_id | : GATT connection ID |
[in] | handle | : Handle of the descriptor to modify |
[in] | value | : Value to set |
int wiced_bt_util_uuid_cmp | ( | wiced_bt_uuid_t * | p_uuid1, |
wiced_bt_uuid_t * | p_uuid2 | ||
) |
Function wiced_bt_util_uuid_cmp.
This utility function Compares two UUIDs. Note: This function can only compare UUIDs of same length
[out] | p_uuid1 | : First UUID |
[in] | p_uuid2 | : Second UUID |
int wiced_bt_util_uuid_cpy | ( | wiced_bt_uuid_t * | p_dst, |
wiced_bt_uuid_t * | p_src | ||
) |
Function wiced_bt_util_uuid_cpy.
This utility function copies an UUID
[out] | p_dst | : Destination UUID |
[in] | p_src | : Source UUID |