---
title: "readAttributeUniqueID(completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterbasic/readattributeuniqueid(completionhandler:)"
---

# readAttributeUniqueID(completionHandler:)

## Declaration

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

```swift
func readAttributeUniqueID() async throws -> String
```
