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

# readAttributeTxErrCount(completionHandler:)

## Declaration

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

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