---
title: "replyPINCode(_:pinCode:)"
framework: IOBluetooth
role: symbol
role_heading: Instance Method
path: "iobluetooth/iobluetoothdevicepair/replypincode(_:pincode:)"
---

# replyPINCode(_:pinCode:)

This is the required reply to the devicePairingPINCodeRequest delegate message. Set the PIN code to use during pairing if required.

## Declaration

```swift
func replyPINCode(_ PINCodeSize: Int, pinCode PINCode: UnsafeMutablePointer<BluetoothPINCode>!)
```

## Parameters

- `PINCodeSize`: The PIN code length in octets (8 bits).
- `PINCode`: PIN code for the device. Can be up to a maximum of 128 bits.
