GATT Robust Caching¶
-
group
gatt_robust_caching_api_functions
GATT Robust Caching API.
Functions
-
void
wiced_bt_gatt_set_client_supported_features
(uint16_t conn_id, wiced_bt_gatt_client_supported_features_t csfs)¶ Set the remote client supported features upon write and for bonded device after reconnect as read from NVRAM.
- Parameters
conn_id – [in] : GATT Connection ID
csfs – [in] : Bit mask as received from the peer
- Returns
None
-
void
wiced_bt_gatt_get_client_supported_features
(uint16_t conn_id, wiced_bt_gatt_client_supported_features_t csfs)¶ Get the remote client supported features.
- Parameters
conn_id – [in] : GATT Connection ID
csfs – [in] : Bit mask set in wiced_bt_gatt_set_client_supported_features
- Returns
None
-
void
wiced_bt_gatt_get_peer_caching_status
(uint16_t conn_id, wiced_bt_gatt_caching_status_t *caching_status)¶ Function wiced_bt_gatt_get_peer_caching_status Can be used by the server application to read the robust caching status of the peer.
- Parameters
conn_id – [in] connection identifier.
caching_status – [out] GATT_PEER_CLIENT_CACHE_CHANGE_AWARE/GATT_PEER_CLIENT_CACHE_CHANGE_UNAWARE
- Returns
None
-
void
wiced_bt_gatt_set_peer_caching_status
(uint16_t conn_id, wiced_bt_gatt_caching_status_t status)¶ This function is used by the application to set peer’s caching state.
The application is expected to store the last wiced_bt_db_hash_t shared with the bonded peer in NVRAM On connection, the application compares the stored wiced_bt_db_hash_t with the current db_hash. If the hashes match, the status is set to GATT_PEER_CLIENT_CACHE_CHANGE_AWARE else GATT_PEER_CLIENT_CACHE_CHANGE_UNAWARE
- Parameters
conn_id – [in] connection identifier.
status – [in] CHANGE_AWARE/CHANGE_UNAWARE.
- Returns
None
-
void