Java Code Examples for com.polidea.rxandroidble2.RxBleConnection#WriteOperationAckStrategy

The following examples show how to use com.polidea.rxandroidble2.RxBleConnection#WriteOperationAckStrategy . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: OperationsProviderImpl.java    From RxAndroidBle with Apache License 2.0 6 votes vote down vote up
@Override
public CharacteristicLongWriteOperation provideLongWriteOperation(
        BluetoothGattCharacteristic bluetoothGattCharacteristic,
        RxBleConnection.WriteOperationAckStrategy writeOperationAckStrategy,
        RxBleConnection.WriteOperationRetryStrategy writeOperationRetryStrategy,
        PayloadSizeLimitProvider maxBatchSizeProvider,
        byte[] bytes) {

    return new CharacteristicLongWriteOperation(bluetoothGatt,
            rxBleGattCallback,
            bluetoothInteractionScheduler,
            timeoutConfiguration,
            bluetoothGattCharacteristic,
            maxBatchSizeProvider,
            writeOperationAckStrategy,
            writeOperationRetryStrategy,
            bytes);
}
 
Example 2
Source File: OperationsProvider.java    From RxAndroidBle with Apache License 2.0 4 votes vote down vote up
CharacteristicLongWriteOperation provideLongWriteOperation(
BluetoothGattCharacteristic bluetoothGattCharacteristic,
RxBleConnection.WriteOperationAckStrategy writeOperationAckStrategy,
RxBleConnection.WriteOperationRetryStrategy writeOperationRetryStrategy,
PayloadSizeLimitProvider maxBatchSizeProvider,
byte[] bytes);
 
Example 3
Source File: LongWriteOperationBuilderImpl.java    From RxAndroidBle with Apache License 2.0 4 votes vote down vote up
@Override
public RxBleConnection.LongWriteOperationBuilder setWriteOperationAckStrategy(
        @NonNull RxBleConnection.WriteOperationAckStrategy writeOperationAckStrategy) {
    this.writeOperationAckStrategy = writeOperationAckStrategy;
    return this;
}