---
title: "configureDevice(named:in:)"
framework: mattersupport
role: symbol
role_heading: Instance Method
path: "mattersupport/matteradddeviceextensionrequesthandler/configuredevice(named:in:)"
---

# configureDevice(named:in:)

Configures the device with selected attributes.

## Declaration

```swift
func configureDevice(named name: String, in room: MatterAddDeviceRequest.Room?) async
```

## Parameters

- `name`: The selected name for the device.
- `room`: The selected room for the device.

## See Also

### Configuring and validating the device

- [validateDeviceCredential(_:)](mattersupport/matteradddeviceextensionrequesthandler/validatedevicecredential(_:).md)
- [MatterAddDeviceExtensionRequestHandler.DeviceCredential](mattersupport/matteradddeviceextensionrequesthandler/devicecredential.md)
- [rooms(in:)](mattersupport/matteradddeviceextensionrequesthandler/rooms(in:).md)
