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.

Return

None

Parameters
  • [in] conn_id: : GATT Connection ID

  • [in] csfs: : Bit mask as received from the peer

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.

Return

None

Parameters

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.

Return

None

Parameters
  • [in] conn_id: connection identifier.

  • [out] caching_status: GATT_PEER_CLIENT_CACHE_CHANGE_AWARE/GATT_PEER_CLIENT_CACHE_CHANGE_UNAWARE

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

Return

None

Parameters
  • [in] conn_id: connection identifier.

  • [in] status: CHANGE_AWARE/CHANGE_UNAWARE.