---
title: CBCharacteristicWriteType.withResponse
framework: corebluetooth
role: symbol
role_heading: Case
path: corebluetooth/cbcharacteristicwritetype/withresponse
---

# CBCharacteristicWriteType.withResponse

Write a characteristic value, with a response from the peripheral to indicate whether the write was successful.

## Declaration

```swift
case withResponse
```

## Discussion

Discussion If the write is unsuccessful, the peripheral responds with an error that details the cause of the failure.

## See Also

### Write Types

- [CBCharacteristicWriteType.withoutResponse](corebluetooth/cbcharacteristicwritetype/withoutresponse.md)
