---
title: "pairDevice(_:address:port:setupPINCode:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrdevicecontroller/pairdevice(_:address:port:setuppincode:)"
---

# pairDevice(_:address:port:setupPINCode:)

## Declaration

```swift
func pairDevice(_ deviceID: UInt64, address: String, port: UInt16, setupPINCode: UInt32) throws
```
