---
title: "writeAttributeControlMode(withValue:params:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterpumpconfigurationandcontrol/writeattributecontrolmode(withvalue:params:completion:)"
---

# writeAttributeControlMode(withValue:params:completion:)

## Declaration

```swift
func writeAttributeControlMode(withValue value: NSNumber, params: MTRWriteParams?, completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func writeAttributeControlMode(withValue value: NSNumber, params: MTRWriteParams?) async throws
```
