maximumWriteValueLength

open override fun maximumWriteValueLength(type: WriteType): Int

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

Maximum value length depends on WriteType and is calculated as:

Connect with CentralManager.ConnectionOptions.automaticallyRequestHighestValueLength to request maximum supported value length on connection, or use requestHighestValueLength to request it during connection.

Throws

If the device is not connected.