<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreBluetooth",
  "identifier" : "/documentation/CoreBluetooth/CBCharacteristicProperties/write",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Core Bluetooth"
    ],
    "preciseIdentifier" : "c:@E@CBCharacteristicProperties@CBCharacteristicPropertyWrite"
  },
  "title" : "write"
}
-->

# write

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

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

## 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`](/documentation/CoreBluetooth/CBCharacteristicProperties/writeWithoutResponse) constant. Use the [`writeValue(_:for:type:)`](/documentation/CoreBluetooth/CBPeripheral/writeValue(_:for:type:)) method of the [`CBPeripheral`](/documentation/CoreBluetooth/CBPeripheral) class to write to a characteristic’s value, using the [`CBCharacteristicWriteType.withResponse`](/documentation/CoreBluetooth/CBCharacteristicWriteType/withResponse) constant as the parameter for `type`.

---

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)