<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "IOBluetooth",
  "identifier" : "/documentation/IOBluetooth/IOBluetoothHandsFreeDevice/send(atCommand:timeout:selector:target:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "IOBluetooth"
    ],
    "preciseIdentifier" : "c:objc(cs)IOBluetoothHandsFreeDevice(im)sendATCommand:timeout:selector:target:"
  },
  "title" : "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.

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

---

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)