<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "IOBluetooth",
  "identifier" : "/documentation/IOBluetooth/IOBluetoothHandsFreeAudioGateway/sendResponse(_:withOK:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "IOBluetooth"
    ],
    "preciseIdentifier" : "c:objc(cs)IOBluetoothHandsFreeAudioGateway(im)sendResponse:withOK:"
  },
  "title" : "sendResponse(_:withOK:)"
}
-->

# sendResponse(_:withOK:)

Sends data followed by an optional success message to a connected Bluetooth hands-free phone or headset.

```
func sendResponse(_ response: String!, withOK: Bool)
```

## Parameters

`response`

A string containing the data.

`withOK`

If `true`, send an `OK` message after sending the response.

---

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)