public class CharacteristicWriteOperation extends SingleResponseOperation<byte[]>
| Modifier and Type | Method and Description |
|---|---|
protected <any> |
getCallback(RxBleGattCallback rxBleGattCallback)
A function that should return
Observable derived from the passed RxBleGattCallback. |
protected boolean |
startOperation(android.bluetooth.BluetoothGatt bluetoothGatt)
A function that should call the passed
BluetoothGatt and return `true` if the call has succeeded. |
java.lang.String |
toString() |
protectedRun, provideException, timeoutFallbackProcedurecompareTo, definedPriority, runprotected <any> getCallback(RxBleGattCallback rxBleGattCallback)
SingleResponseOperationObservable derived from the passed RxBleGattCallback.
The returned Observable will be automatically unsubscribed after the first emission.
The returned Observable is a subject to Observable#timeout(long, TimeUnit, Scheduler, io.reactivex.ObservableSource)
and by default it will throw BleGattCallbackTimeoutException. This behaviour can be overridden by overriding
SingleResponseOperation.timeoutFallbackProcedure(BluetoothGatt, RxBleGattCallback, Scheduler).getCallback in class SingleResponseOperation<byte[]>rxBleGattCallback - the RxBleGattCallback to useprotected boolean startOperation(android.bluetooth.BluetoothGatt bluetoothGatt)
SingleResponseOperationBluetoothGatt and return `true` if the call has succeeded.startOperation in class SingleResponseOperation<byte[]>bluetoothGatt - the BluetoothGatt to usepublic java.lang.String toString()
toString in class SingleResponseOperation<byte[]>