---
title: "readAttributePaths(_:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrdevice/readattributepaths(_:)"
---

# readAttributePaths(_:)

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

## Declaration

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

## Return Value

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

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.
