---
title: CBCharacteristicWriteType
framework: corebluetooth
role: symbol
role_heading: Enumeration
path: corebluetooth/cbcharacteristicwritetype
---

# CBCharacteristicWriteType

Values representing the possible write types to a characteristic’s value.

## Declaration

```swift
enum CBCharacteristicWriteType
```

## Overview

Overview Characteristic write types have corresponding restrictions on the length of the data that you can write to a characteristic’s value. For the CBCharacteristicWriteType.withResponse write type’s restrictions, see the Bluetooth 4.0 specification, Volume 3, Part G, Sections 4.9.3–4. For the CBCharacteristicWriteType.withoutResponse write type restrictions, see the Bluetooth 4.0 specification, Volume 3, Part G, Sections 4.9.1–2. tip: When you write with a response, you can write a characteristic value that’s longer than permitted when you write without a response.

## Topics

### Write Types

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

### Initializers

- [init(rawValue:)](corebluetooth/cbcharacteristicwritetype/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Writing Characteristic and Descriptor Values

- [writeValue(_:for:type:)](corebluetooth/cbperipheral/writevalue(_:for:type:).md)
- [writeValue(_:for:)](corebluetooth/cbperipheral/writevalue(_:for:).md)
- [maximumWriteValueLength(for:)](corebluetooth/cbperipheral/maximumwritevaluelength(for:).md)
