---
title: device
framework: IOBluetooth
role: symbol
role_heading: Instance Property
path: iobluetooth/iobluetoothsdpservicerecord/device
---

# device

Returns the IOBluetoothDevice that the target service belongs to.

## Declaration

```swift
var device: IOBluetoothDevice! { get }
```

## Return Value

Return Value Returns the IOBluetoothDevice that the target service belongs to. If the service is one the local host is vending, then nil is returned.

## Discussion

Discussion If the service is a local service (i.e. one the current host is vending out), then nil is returned.
