---
title: "writeAttributeLocation(withValue:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterbasic/writeattributelocation(withvalue:completionhandler:)"
---

# writeAttributeLocation(withValue:completionHandler:)

## Declaration

```swift
func writeAttributeLocation(withValue value: String, completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func writeAttributeLocation(withValue value: String) async throws
```
