<!--
{
  "availability" : [
    "iOS: 18.2.0 -",
    "iPadOS: 18.2.0 -",
    "macCatalyst: 18.2.0 -",
    "macOS: 15.2.0 -",
    "tvOS: 18.2.0 -",
    "visionOS: 2.2.0 -",
    "watchOS: 11.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Matter",
  "identifier" : "/documentation/Matter/MTRXPCServerProtocol_MTRDevice/deviceController(_:nodeID:readAttributeWithEndpointID:clusterID:attributeID:params:withReply:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Matter"
    ],
    "preciseIdentifier" : "c:objc(pl)MTRXPCServerProtocol_MTRDevice(im)deviceController:nodeID:readAttributeWithEndpointID:clusterID:attributeID:params:withReply:"
  },
  "title" : "deviceController(_:nodeID:readAttributeWithEndpointID:clusterID:attributeID:params:withReply:)"
}
-->

# deviceController(_:nodeID:readAttributeWithEndpointID:clusterID:attributeID:params:withReply:)

```
func deviceController(_ controller: UUID, nodeID: NSNumber, readAttributeWithEndpointID endpointID: NSNumber, clusterID: NSNumber, attributeID: NSNumber, params: MTRReadParams?, withReply reply: @escaping @Sendable ([String : Any]?) -> Void)
```

```
func deviceController(_ controller: UUID, nodeID: NSNumber, readAttributeWithEndpointID endpointID: NSNumber, clusterID: NSNumber, attributeID: NSNumber, params: MTRReadParams?) async -> [String : Any]?
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)