GATT Database Access Functions.
More...
GATT Database Access Functions.
Add a service module to the database.
Service modules define the complete service handles (i.e Service, characteristics, descriptor, included service declaration handles) The handle range in the service modules have to be distinct, i.e, cannot overlap with any of the existing service modules in the database Note: Set the wiced_bt_cfg_gatt_t::max_db_service_modules to the number of additional services to be added
- Parameters
-
[in] | p_gatt_db | : First element in GATT database array |
[in] | gatt_db_size | : Size (in bytes) of GATT database |
[out] | hash | : The calculated database hash value. The hash pointer passed to this function can be NULL incase the application does not support dynamic databases and does not support database caching |
- Returns
- wiced_bt_gatt_status_t
Initialize the GATT database (Please refer Service and Characteristic macros for MACRO's to create or add entries to GATT database)
- Parameters
-
[in] | p_gatt_db | : First element in new GATT database array |
[in] | gatt_db_size | : Size (in bytes) of GATT database |
[out] | hash | : The calculated database hash value. The hash pointer passed to this function can be NULL incase the application does not support dynamic databases and does not support database caching |
- Returns
- wiced_bt_gatt_status_t
Remove the service module from the database.
- Parameters
-
[in] | p_gatt_db | : First element in GATT database array |
[out] | hash | : The calculated database hash value. The hash pointer passed to this function can be NULL incase the application does not support dynamic databases and does not support database caching |
- Returns
- wiced_bt_gatt_status_t