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

# readAttributeAttachAttemptCount(completion:)

## Declaration

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

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