maximumWriteValueLength
The maximum amount of data, in bytes, you can send to a characteristic in a single write request.
Maximum size for WriteType.WITH_RESPONSE type is 512 bytes or to ATT MTU - 5 bytes when writing reliably (see ReliableWriteScope). For WriteType.WITHOUT_RESPONSE it is equal to ATT MTU - 3 bytes.
The ATT MTU value can be negotiated during the connection setup.
Throws
if the peripheral is not connected.
If BLUETOOTH_CONNECT permission is denied.