---
title: "readAttribute(withEndpointID:clusterID:attributeID:params:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrdevice/readattribute(withendpointid:clusterid:attributeid:params:)"
---

# readAttribute(withEndpointID:clusterID:attributeID:params:)

## Declaration

```swift
func readAttribute(withEndpointID endpointID: NSNumber, clusterID: NSNumber, attributeID: NSNumber, params: MTRReadParams?) -> [String : Any]?
```
