---
title: "getTargetsWithExpectedValues(_:expectedValueInterval:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclusterenergyevse/gettargetswithexpectedvalues(_:expectedvalueinterval:completion:)"
---

# getTargetsWithExpectedValues(_:expectedValueInterval:completion:)

## Declaration

```swift
func getTargetsWithExpectedValues(_ expectedValues: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?, completion: @escaping @Sendable (MTREnergyEVSEClusterGetTargetsResponseParams?, (any Error)?) -> Void)
```

```swift
func targets(withExpectedValues expectedValues: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?) async throws -> MTREnergyEVSEClusterGetTargetsResponseParams
```
