Function esp_idf_sys::ble_gatts_count_cfg
source · pub unsafe extern "C" fn ble_gatts_count_cfg(
defs: *const ble_gatt_svc_def,
) -> c_int
Expand description
Adjusts a host configuration object’s settings to accommodate the specified service definition array. This function adds the counts to the appropriate fields in the supplied configuration object without clearing them first, so it can be called repeatedly with different inputs to calculate totals. Be sure to zero the GATT server settings prior to the first call to this function.
@param defs The service array containing the resource definitions to be counted.
@return 0 on success; BLE_HS_EINVAL if the svcs array contains an invalid resource definition.