<!--
{
  "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:downloadLogOf:timeout:completion:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Matter"
    ],
    "preciseIdentifier" : "c:objc(pl)MTRXPCServerProtocol_MTRDevice(im)deviceController:nodeID:downloadLogOfType:timeout:completion:"
  },
  "title" : "deviceController(_:nodeID:downloadLogOf:timeout:completion:)"
}
-->

# deviceController(_:nodeID:downloadLogOf:timeout:completion:)

```
optional func deviceController(_ controller: UUID, nodeID: NSNumber, downloadLogOf type: MTRDiagnosticLogType, timeout: TimeInterval, completion: @escaping @Sendable (URL?, (any Error)?) -> Void)
```

```
optional func deviceController(_ controller: UUID, nodeID: NSNumber, downloadLogOf type: MTRDiagnosticLogType, timeout: TimeInterval) async throws -> URL
```

---

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)