Infineon Logo AIROC BTSDK v4.2 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
GATT Robust Caching

GATT Robust Caching API. More...

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. More...
 
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. More...
 
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. More...
 
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. More...
 

Detailed Description

GATT Robust Caching API.

Function Documentation

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
[in]conn_id: GATT Connection ID
[in]csfs: 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
[in]conn_idconnection identifier.
[out]caching_statusGATT_PEER_CLIENT_CACHE_CHANGE_AWARE/GATT_PEER_CLIENT_CACHE_CHANGE_UNAWARE
Returns
None
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
[in]conn_id: GATT Connection ID
[in]csfs: Bit mask as received from the peer
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
[in]conn_idconnection identifier.
[in]statusCHANGE_AWARE/CHANGE_UNAWARE.
Returns
None