---
title: "sendResponse(_:)"
framework: IOBluetooth
role: symbol
role_heading: Instance Method
platforms: [macOS 10.7+]
path: "iobluetooth/iobluetoothhandsfreeaudiogateway/sendresponse(_:)"
---

# sendResponse(_:)

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

## Declaration

```swift
func sendResponse(_ response: String!)
```

## Parameters

- `response`: A string containing the data.

## Discussion

Discussion Calling this method has the same result as calling sendResponse(response: response, withOK: true).

## See Also

### Sending and Receiving Commands

- [sendResponse(_:withOK:)](iobluetooth/iobluetoothhandsfreeaudiogateway/sendresponse(_:withok:).md)
- [sendOKResponse()](iobluetooth/iobluetoothhandsfreeaudiogateway/sendokresponse().md)
- [process(atCommand:)](iobluetooth/iobluetoothhandsfreeaudiogateway/process(atcommand:).md)
