---
title: "deviceAttestationFailed(for:opaqueDeviceHandle:error:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrdeviceattestationdelegate/deviceattestationfailed(for:opaquedevicehandle:error:)"
---

# deviceAttestationFailed(for:opaqueDeviceHandle:error:)

## Declaration

```swift
optional func deviceAttestationFailed(for controller: MTRDeviceController, opaqueDeviceHandle: UnsafeMutableRawPointer, error: any Error)
```
