---
title: "readAttributes(withEndpointID:clusterID:attributeID:params:queue:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbasedevice/readattributes(withendpointid:clusterid:attributeid:params:queue:completion:)"
---

# readAttributes(withEndpointID:clusterID:attributeID:params:queue:completion:)

## Declaration

```swift
func readAttributes(withEndpointID endpointID: NSNumber?, clusterID: NSNumber?, attributeID: NSNumber?, params: MTRReadParams?, queue: dispatch_queue_t, completion: @escaping @Sendable ([[String : Any]]?, (any Error)?) -> Void)
```

```swift
func readAttributes(withEndpointID endpointID: NSNumber?, clusterID: NSNumber?, attributeID: NSNumber?, params: MTRReadParams?, queue: dispatch_queue_t) async throws -> [[String : Any]]
```
