maximumWriteValueLength

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:

Throws

if the peripheral is not connected.

If BLUETOOTH_CONNECT permission is denied.