AIROC™ BTSDK v4.7 - Documentation | ||||
GATT Database Access Functions. More...
Functions | |
wiced_gattdb_entry_t * | wiced_bt_gattdb_next_entry (wiced_gattdb_entry_t *p_db_entry) |
Function wiced_bt_gattdb_next_entry. More... | |
uint16_t | wiced_bt_gattdb_get_handle (wiced_gattdb_entry_t *p_db_entry) |
Function wiced_bt_gattdb_get_handle. More... | |
int | wiced_bt_gattdb_get_attribute_uuid (wiced_gattdb_entry_t *p_db_entry, uint8_t *p_uuid) |
Function wiced_bt_gattdb_get_attribute_uuid. More... | |
uint16_t | wiced_bt_gattdb_get_attribute_value_uuid16 (wiced_gattdb_entry_t *p_db_entry) |
Function wiced_bt_gattdb_get_attribute_value_uuid16. More... | |
uint16_t | wiced_bt_gattdb_get_charcteristic_descriptor_handle (uint16_t char_handle, uint16_t descriptor_uuid) |
Function wiced_bt_gattdb_get_charcteristic_descriptor_handle. More... | |
GATT Database Access Functions.
Utility functions required to access GATT database
int wiced_bt_gattdb_get_attribute_uuid | ( | wiced_gattdb_entry_t * | p_db_entry, |
uint8_t * | p_uuid | ||
) |
Function wiced_bt_gattdb_get_attribute_uuid.
[in] | p_db_entry | : GATT DB atrribute entry |
[out] | p_uuid | : 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 |
uint16_t wiced_bt_gattdb_get_attribute_value_uuid16 | ( | wiced_gattdb_entry_t * | p_db_entry | ) |
Function wiced_bt_gattdb_get_attribute_value_uuid16.
Utility to get service UUID from GATTDB Primary/Secondary services
[in] | p_db_entry | : GATT DB atrribute entry |
uint16_t wiced_bt_gattdb_get_charcteristic_descriptor_handle | ( | uint16_t | char_handle, |
uint16_t | descriptor_uuid | ||
) |
Function wiced_bt_gattdb_get_charcteristic_descriptor_handle.
Utility to get characteristic descriptor handle value from GATTDB. If characteristic does not have a characteristic descriptor with specified UUID, function will return zero
[in] | char_handle | : GATT DB characteristic handle |
[in] | descriptor_uuid | : Characteristic descriptor UUID |
uint16_t wiced_bt_gattdb_get_handle | ( | wiced_gattdb_entry_t * | p_db_entry | ) |
Function wiced_bt_gattdb_get_handle.
Utility to get attribute handle from GATT DB entry To get next attribute handle, application needs traverse by wiced_bt_gattdb_next_entry
[in] | p_db_entry | : GATT DB atrribute entry |
wiced_gattdb_entry_t* wiced_bt_gattdb_next_entry | ( | wiced_gattdb_entry_t * | p_db_entry | ) |
Function wiced_bt_gattdb_next_entry.
Find 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
[in] | p_db_entry | : GATT DB atrribute entry |