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:
512 bytes for WriteType.WITH_RESPONSE,
ATT MTU - 3 bytes for WriteType.WITHOUT_RESPONSE,
ATT MTU - 15 bytes for WriteType.SIGNED (additional 12 bytes for the signature).
Throws
if the peripheral is not connected.
If BLUETOOTH_CONNECT permission is denied.