---
title: "send(atCommand:timeout:selector:target:)"
framework: IOBluetooth
role: symbol
role_heading: Instance Method
platforms: [macOS 10.7+]
path: "iobluetooth/iobluetoothhandsfreedevice/send(atcommand:timeout:selector:target:)"
---

# send(atCommand:timeout:selector:target:)

Send an AT command to the Bluetooth audio gateway and performs a selector on completion or timeout.

## Declaration

```swift
func send(atCommand: String!, timeout: Float, selector: Selector!, target: Any!)
```

## Parameters

- `atCommand`: A string containing the AT command.
- `timeout`: The number of seconds until the message times out.
- `selector`: The function to call on completion or timeout.
- `target`: The target object for the completion call.

## See Also

### Sending Messages and Commands

- [sendSMS(_:message:)](iobluetooth/iobluetoothhandsfreedevice/sendsms(_:message:).md)
- [sendDTMF(_:)](iobluetooth/iobluetoothhandsfreedevice/senddtmf(_:).md)
- [send(atCommand:)](iobluetooth/iobluetoothhandsfreedevice/send(atcommand:).md)
