maximumWriteValueLength

open override fun maximumWriteValueLength(type: WriteType): Int

The maximum amount of data, in bytes, that can be send to a characteristic in a single write operation.

Maximum value length depends on WriteType and is calculated as:

Higher value of ATT MTU for WriteType.WITHOUT_RESPONSE can be requested using requestHighestValueLength.

Throws

If the device is not connected.