AIROC™ BTSDK v4.9 - Documentation | ||||
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... | |
GATT Robust Caching API.
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.
[in] | conn_id | : GATT Connection ID |
[in] | csfs | : Bit mask set in wiced_bt_gatt_set_client_supported_features |
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.
[in] | conn_id | connection identifier. |
[out] | caching_status | see wiced_bt_gatt_caching_status_t |
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.
[in] | conn_id | : GATT Connection ID |
[in] | csfs | : Bit mask as received from the peer |
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
[in] | conn_id | connection identifier. |
[in] | status | CHANGE_AWARE/CHANGE_UNAWARE. |