---
title: getRFCOMMChannel()
framework: IOBluetooth
role: symbol
role_heading: Instance Method
path: iobluetooth/iobluetoothobexsession/getrfcommchannel()
---

# getRFCOMMChannel()

Get the Bluetooth RFCOMM channel being used by the session object.

## Declaration

```swift
func getRFCOMMChannel() -> IOBluetoothRFCOMMChannel!
```

## Return Value

Return Value A IOBluetoothRFCOMMChannel object.

## Discussion

Discussion This could potentially be nil even though you have a valid OBEX session, because the RFCOMM channel is only valid when the session is connected.
