---
title: "setCookingParametersWith(_:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclustermicrowaveovencontrol/setcookingparameterswith(_:completion:)"
---

# setCookingParametersWith(_:completion:)

Command SetCookingParameters

## Declaration

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

```swift
func setCookingParametersWith(_ params: MTRMicrowaveOvenControlClusterSetCookingParametersParams?) async throws
```

## Discussion

Discussion This command is used to set the cooking parameters associated with the operation of the device.
