---
title: "init(device:channelID:)"
framework: IOBluetooth
role: symbol
role_heading: Initializer
path: "iobluetooth/iobluetoothobexsession/init(device:channelid:)"
---

# init(device:channelID:)

Initializes a Bluetooth-based OBEX Session using a Bluetooth device.

## Declaration

```swift
init!(device inDevice: IOBluetoothDevice!, channelID inChannelID: BluetoothRFCOMMChannelID)
```

## Parameters

- `inDevice`: The bluetooth device on which to open the OBEXSession.
- `inChannelID`: The RFCOMM channel ID to use when opening the connection.

## See Also

### Initializers

- [init(incomingRFCOMMChannel:eventSelector:selectorTarget:refCon:)](iobluetooth/iobluetoothobexsession/init(incomingrfcommchannel:eventselector:selectortarget:refcon:).md)
- [init(sdpServiceRecord:)](iobluetooth/iobluetoothobexsession/init(sdpservicerecord:)-h1xg.md)
