writeReliably

Writes the value of the characteristic reliably using WriteType.WITH_RESPONSE.

If this method is invoked while a reliable write transaction is in progress, the data is compared with the value reported by the remote device. If the reported value doesn't match the reliable write is aborted and the method throws ValueDoesNotMatchException.

The maximum length of the data is limited by the ATT MTU - 5 bytes.

Parameters

data

The data to be written reliably.


Writes the value of the descriptor reliably.

If this method is invoked while a reliable write transaction is in progress, the data is compared with the value reported by the remote device. If the reported value doesn't match the reliable write is aborted and the method throws ValueDoesNotMatchException.

The maximum length of the data is limited by the ATT MTU - 5 bytes.

Parameters

data

The data to be written reliably.