Functions | |
uint16_t | ble_gattc_cache_enable (uint8_t conn_idx) |
GATTC cache feature enable. More... | |
uint16_t | ble_gattc_cache_disable (uint8_t conn_idx) |
GATTC cache feature disable. More... | |
bool | ble_gattc_cache_feat_get (uint8_t conn_idx) |
GATTC Get cache feature state. More... | |
uint16_t | ble_gattc_cache_get (uint8_t conn_idx, attr_cache_info_t *p_cache_data, uint16_t *p_cache_count) |
GATTC cache data get. More... | |
uint16_t | ble_gattc_cache_list_get (gatt_cache_list_t *p_cache_list) |
Get the content of the whole GATT caching list. More... | |
uint16_t | ble_gattc_cache_delete (ble_gap_bdaddr_t *p_peer_bd_addr) |
GATTC cache date delete on disconnection state. More... | |
uint16_t ble_gattc_cache_delete | ( | ble_gap_bdaddr_t * | p_peer_bd_addr | ) |
GATTC cache date delete on disconnection state.
[in] | p_peer_bd_addr | Identity address of peer device. |
SDK_SUCCESS | Successfully delete cache in nvds. |
BLE_SDK_ERR_BAD_PARAM | Invalid parameter(s) supplied. |
BLE_SDK_ERR_LIST_ITEM_NOT_FOUND | Item not found in list. |
uint16_t ble_gattc_cache_disable | ( | uint8_t | conn_idx | ) |
GATTC cache feature disable.
[in] | conn_idx | Current connection index. |
SDK_SUCCESS | Successfully enable cache feature. |
BLE_SDK_ERR_BAD_PARAM | Invalid parameter(s) supplied. |
uint16_t ble_gattc_cache_enable | ( | uint8_t | conn_idx | ) |
GATTC cache feature enable.
[in] | conn_idx | Current connection index. |
SDK_SUCCESS | Successfully enable cache feature. |
BLE_SDK_ERR_BAD_PARAM | Invalid parameter(s) supplied. |
bool ble_gattc_cache_feat_get | ( | uint8_t | conn_idx | ) |
GATTC Get cache feature state.
[in] | conn_idx | Current connection index. |
uint16_t ble_gattc_cache_get | ( | uint8_t | conn_idx, |
attr_cache_info_t * | p_cache_data, | ||
uint16_t * | p_cache_count | ||
) |
GATTC cache data get.
[in] | conn_idx | Current connection index. |
[in] | p_cache_data | The attribute cache buf. |
[out] | p_cache_count | The count of attribute cache buf. |
SDK_SUCCESS | Successfully get cache attributes info. |
BLE_SDK_ERR_BAD_PARAM | Invalid parameter(s) supplied. |
BLE_SDK_ERR_CACHE_NOT_ENABLE | Cache feature is not enabled. |
BLE_SDK_ERR_BUSY | Caching data operation is not finished. |
BLE_SDK_ERR_BUF_LEN_NOT_ENOUGH | The cache buf lenth is not enough. |
uint16_t ble_gattc_cache_list_get | ( | gatt_cache_list_t * | p_cache_list | ) |
Get the content of the whole GATT caching list.
[in] | p_cache_list | Pointer to the output caching list. |
SDK_SUCCESS | Operation is successful. |
SDK_ERR_POINTER_NULL | Invalid pointer supplied. |