<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "IOBluetooth",
  "identifier" : "/documentation/IOBluetooth/IOBluetoothOBEXSession/init(device:channelID:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "IOBluetooth"
    ],
    "preciseIdentifier" : "c:objc(cs)IOBluetoothOBEXSession(im)initWithDevice:channelID:"
  },
  "title" : "init(device:channelID:)"
}
-->

# init(device:channelID:)

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

```
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.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)