---
title: "readAttributeDataVersion(completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterthreadnetworkdiagnostics/readattributedataversion(completion:)"
---

# readAttributeDataVersion(completion:)

## Declaration

```swift
func readAttributeDataVersion(completion: @escaping @Sendable (NSNumber?, (any Error)?) -> Void)
```

```swift
func readAttributeDataVersion() async throws -> NSNumber
```
