---
title: "maximumWriteValueLength(for:)"
framework: corebluetooth
role: symbol
role_heading: Instance Method
path: "corebluetooth/cbperipheral/maximumwritevaluelength(for:)"
---

# maximumWriteValueLength(for:)

The maximum amount of data, in bytes, you can send to a characteristic in a single write type.

## Declaration

```swift
func maximumWriteValueLength(for type: CBCharacteristicWriteType) -> Int
```

## Parameters

- `type`: The characteristic write type to inspect.

## See Also

### Writing Characteristic and Descriptor Values

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