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

The following examples show how to use com.polidea.rxandroidble2.RxBleConnection#LongWriteOperationBuilder . 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: ConnectionModule.java    From RxAndroidBle with Apache License 2.0 4 votes vote down vote up
@Binds
abstract RxBleConnection.LongWriteOperationBuilder bindLongWriteOperationBuilder(LongWriteOperationBuilderImpl operationBuilder);
 
Example 2
Source File: LongWriteOperationBuilderImpl.java    From RxAndroidBle with Apache License 2.0 4 votes vote down vote up
@Override
public RxBleConnection.LongWriteOperationBuilder setBytes(@NonNull byte[] bytes) {
    this.bytes = bytes;
    return this;
}
 
Example 3
Source File: LongWriteOperationBuilderImpl.java    From RxAndroidBle with Apache License 2.0 4 votes vote down vote up
@Override
public RxBleConnection.LongWriteOperationBuilder setCharacteristicUuid(@NonNull final UUID uuid) {
    this.writtenCharacteristicObservable = rxBleConnection.getCharacteristic(uuid);
    return this;
}
 
Example 4
Source File: LongWriteOperationBuilderImpl.java    From RxAndroidBle with Apache License 2.0 4 votes vote down vote up
@Override
public RxBleConnection.LongWriteOperationBuilder setCharacteristic(@NonNull BluetoothGattCharacteristic bluetoothGattCharacteristic) {
    this.writtenCharacteristicObservable = Single.just(bluetoothGattCharacteristic);
    return this;
}
 
Example 5
Source File: LongWriteOperationBuilderImpl.java    From RxAndroidBle with Apache License 2.0 4 votes vote down vote up
@Override
public RxBleConnection.LongWriteOperationBuilder setMaxBatchSize(final int maxBatchSize) {
    this.maxBatchSizeProvider = new ConstantPayloadSizeLimit(maxBatchSize);
    return this;
}
 
Example 6
Source File: LongWriteOperationBuilderImpl.java    From RxAndroidBle with Apache License 2.0 4 votes vote down vote up
@Override
public RxBleConnection.LongWriteOperationBuilder setWriteOperationRetryStrategy(
        @NonNull RxBleConnection.WriteOperationRetryStrategy writeOperationRetryStrategy) {
    this.writeOperationRetryStrategy = writeOperationRetryStrategy;
    return this;
}
 
Example 7
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;
}