---
title: "setTemperatureWithCompletion(_:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclustertemperaturecontrol/settemperaturewithcompletion(_:)"
---

# setTemperatureWithCompletion(_:)

## Declaration

```swift
func setTemperatureWithCompletion(_ completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func setTemperature() async throws
```
