---
title: getObjectID()
framework: IOBluetooth
role: symbol
role_heading: Instance Method
path: iobluetooth/iobluetoothrfcommchannel/getobjectid()
---

# getObjectID()

Returns the IOBluetoothObjectID of the given IOBluetoothRFCOMMChannel.

## Declaration

```swift
func getObjectID() -> IOBluetoothObjectID
```

## Return Value

Return Value Returns the IOBluetoothObjectID of the given IOBluetoothRFCOMMChannel.

## Discussion

Discussion The IOBluetoothObjectID can be used as a global reference for a given IOBluetoothRFCOMMChannel. It allows two separate applications to refer to the same IOBluetoothRFCOMMChannel.
