GATT Database Access Functions.
More...
|
typedef int32_t(* | wiced_bt_gatt_GATTDB_WRITE_CB )(void *) |
|
GATT Database Access Functions.
Function Name: wiced_bt_gattdb_get_attribute_uuid.
Gets the attribute UUID from GATT DB entry.
- Parameters
-
[in] | p_db_entry | : GATT DB attribute entry |
[out] | p_uuid | : The pointer to UUID holder. Application should pass the required size of UUID It is recommended to pass uint8_t[16], so that we can avoid overflow in case of 128 bit uuid |
- Returns
- size of the UUID
Function Name: wiced_bt_gattdb_get_attribute_value_uuid16.
Gets the service UUID from GATTDB Primary/Secondary services.
- Parameters
-
[in] | p_db_entry | : GATT DB attribute entry |
- Returns
- 16-bit UUID
uint16_t wiced_bt_gattdb_get_charcteristic_descriptor_handle |
( |
uint16_t |
char_handle, |
|
|
uint16_t |
descriptor_uuid |
|
) |
| |
Function Name: wiced_bt_gattdb_get_charcteristic_descriptor_handle.
Gets the characteristic descriptor handle value from GATTDB. If characteristic does not have a characteristic descriptor with specified UUID, the function will return zero.
- Parameters
-
[in] | char_handle | : GATT DB characteristic handle |
[in] | descriptor_uuid | : Characteristic descriptor UUID |
- Returns
- characteristic descriptor handle
Function Name: wiced_bt_gattdb_get_handle.
Gets attribute handle from GATT DB entry. To get the next attribute handle, the application needs traverse by wiced_bt_gattdb_next_entry.
- Parameters
-
[in] | p_db_entry | : GATT DB attribute entry |
- Returns
- attribute handle
Function Name: wiced_bt_gattdb_next_entry.
Finds the next GATT attribute entry in the local GATT database To find the first attribute entry pass the address of the local GATT database as a parameter
- Parameters
-
[in] | p_db_entry | : GATT DB attribute entry |
- Returns
- The pointer to next attribute entry.