---
title: "setTargetsWith(_:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterenergyevse/settargetswith(_:completion:)"
---

# setTargetsWith(_:completion:)

Command SetTargets

## Declaration

```swift
func setTargetsWith(_ params: MTREnergyEVSEClusterSetTargetsParams, completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func setTargetsWith(_ params: MTREnergyEVSEClusterSetTargetsParams) async throws
```

## Discussion

Discussion Allows a client to set the user specified charging targets.
