---
title: "writeAttributeStructAttr(withValue:params:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclustertestcluster/writeattributestructattr(withvalue:params:completionhandler:)"
---

# writeAttributeStructAttr(withValue:params:completionHandler:)

## Declaration

```swift
func writeAttributeStructAttr(withValue value: MTRTestClusterClusterSimpleStruct, params: MTRWriteParams?, completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func writeAttributeStructAttr(withValue value: MTRTestClusterClusterSimpleStruct, params: MTRWriteParams?) async throws
```
