---
title: "readAttributeTxErrCount(completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterethernetnetworkdiagnostics/readattributetxerrcount(completion:)"
---

# readAttributeTxErrCount(completion:)

## Declaration

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

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