---
title: connect()
framework: IOBluetooth
role: symbol
role_heading: Instance Method
platforms: [macOS 10.7+]
path: iobluetooth/iobluetoothhandsfree/connect()
---

# connect()

Connect to the device

## Declaration

```swift
func connect()
```

## Discussion

Discussion Connects to the device and sets up a service level connection (RFCOMM channel). Delegate methods will be called once the connection is complete or a failure occurs.
