---
title: write
framework: corebluetooth
role: symbol
role_heading: Type Property
path: corebluetooth/cbcharacteristicproperties/write
---

# write

A property that indicates a peripheral can write the characteristic’s value, with a response to indicate that the write succeeded.

## Declaration

```swift
static var write: CBCharacteristicProperties { get }
```

## Discussion

Discussion If a characteristic has this property set, it returns an error to the central when it fails to write the characteristic’s value. This property allows writing values characteristic that are longer than those permitted by the writeWithoutResponse constant. Use the writeValue(_:for:type:) method of the CBPeripheral class to write to a characteristic’s value, using the CBCharacteristicWriteType.withResponse constant as the parameter for type.

## See Also

### Characteristic Properties

- [broadcast](corebluetooth/cbcharacteristicproperties/broadcast.md)
- [read](corebluetooth/cbcharacteristicproperties/read.md)
- [writeWithoutResponse](corebluetooth/cbcharacteristicproperties/writewithoutresponse.md)
- [notify](corebluetooth/cbcharacteristicproperties/notify.md)
- [indicate](corebluetooth/cbcharacteristicproperties/indicate.md)
- [authenticatedSignedWrites](corebluetooth/cbcharacteristicproperties/authenticatedsignedwrites.md)
- [extendedProperties](corebluetooth/cbcharacteristicproperties/extendedproperties.md)
- [notifyEncryptionRequired](corebluetooth/cbcharacteristicproperties/notifyencryptionrequired.md)
- [indicateEncryptionRequired](corebluetooth/cbcharacteristicproperties/indicateencryptionrequired.md)
