<!--
{
  "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/MTRDevice/readAttributePaths(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Matter"
    ],
    "preciseIdentifier" : "c:objc(cs)MTRDevice(im)readAttributePaths:"
  },
  "title" : "readAttributePaths(_:)"
}
-->

# readAttributePaths(_:)

Read the attributes identified by the provided attribute paths.  The paths
can include wildcards.

```
func readAttributePaths(_ attributePaths: [MTRAttributeRequestPath]) -> [[String : Any]]
```

## Return Value

an array of response-value dictionaries as described in the
documentation for MTRDeviceResponseHandler.  Each one will have an
MTRAttributePathKey and an MTRDataKey.

## Discussion

Paths that do not correspond to any existing attributes, or that the
MTRDevice does not have attribute values for, will not be present in the
return value from this function.

---

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)