Questions tagged [rxandroidble]

RxAndroidBle is a library wrapping the native Android Bluetooth Low Energy (BLE) API based on RxJava. Use this tag when asking questions related to usage of the RxAndroidBle library.

RxAndroidBle is a powerful painkiller for Android's Bluetooth Low Energy headaches. It is backed by RxJava, implementing complicated APIs as handy reactive observables.

Features:

  • Fancy asynchronous operations support (read, write, notifications)
  • Threading management in order to meet Android contracts
  • Connection and operation error handling

See also:

268 questions
0
votes
1 answer

How to Retry RxAndroidBLE Discover Services in case of GATT error.

I am using RxAndroidBLE library for discovering services in my GATT server. it works fine most of the time but often i get GATT error 133 (0x85) and it fails. I will like to retry for discovery of the service couple of time for a time period, say…
0
votes
2 answers

rxAndroidBle get long write response

I'm doing a long write to a BLE for making an OTA update, but I need to wait for the write response of the BLE device for sending more data but I don't know how to catch the device write response, I'm using a Samsung galaxy tab s2 with android 7,…
0
votes
1 answer

How to Read BLE GATT characterstics in chunks form GATT server using RxAndroidBLE

I am using RxAndroidBle library for handling BLE connection and reading/writing to GATT server from my android gatt client app. I have followed the sample application provided on github. The problem I am facing is my GATT server is running on Intel…
0
votes
1 answer

Can I Use RxAndroidBle and RxJava2 in the same project?

I have an Android application which relies on RxAndroid (based on RxJava2). I've also added the RxAdnroidBle dependency which still uses RxJava1. During compilation I had the following error: Execution failed for task…
Medvednic
  • 692
  • 3
  • 11
  • 28
0
votes
1 answer

RxAndroidBle work with not low energy devices

Is there any possibility to work with non-low-energy devices using RxAndroidBle library?
Raman Branavitski
  • 864
  • 1
  • 9
  • 22
0
votes
2 answers

RxAndroidBle - RxBleDevice getName() always returns null

Having the following code rxBleClient = RxBleClient.create(this); scanSubscription = rxBleClient.scanBleDevices( new ScanSettings.Builder() .setCallbackType(ScanSettings.CALLBACK_TYPE_ALL_MATCHES) …
reixa
  • 6,903
  • 6
  • 49
  • 68
0
votes
1 answer

Mocking BLE Characteristic Write with MockRxAndroidBle

I'm writing a JUnit test for writing data to a BLE characteristic using the MockRxAndroidBle. The characteristics are being added to the mock device using the addService(UUID, List) method on the DeviceBuilder. The…
Joe Rider
  • 148
  • 7
0
votes
0 answers

Error message from RxAndroidBle

I have an Android Service that is giving me the following error message when it is being destroyed: Service io.aeroscope.aeroscope.AeroscopeBluetoothService has leaked IntentReceiver com.polidea.rxandroidble.RxBleAdapterStateObservable$1$1@3d91b742…
0
votes
2 answers

RxAndroidBle long write - callback for each batch written

I'm doing a long write operation, sending 16 byte batches at a time. I'd like to have a progress bar show the progress of the long write to the user, so I need some sort of callback for each time a batch has been written. From the documentation, it…
rjr-apps
  • 352
  • 4
  • 13
0
votes
1 answer

Why can't it apply flatmap and subscribe on the same RxBleConnection observable twice?

As title, For simplicity, if i want to execute twice read operation with different UUID : (I know RxAndroidBle have provided a multiple read function) Observable ob = device.establishConnection(false); ob.flatMap(rxBleConnection…
楊舜淼
  • 73
  • 6
0
votes
0 answers

BleGattCharacteristicException status 0x06 when reading Ble characteristic

I'm using RxAndroidBle library for communicating with bluetooth device, however recently i bumped into strange issue. When reading one of the device characteristics i receive such error: BleGattCharacteristicException{macAddress=60:CE:32:BA:9E:70,…
Jogosb
  • 155
  • 1
  • 12
0
votes
1 answer

why call the method first will disconnect automatically after discovery

I am a newer for RxJava, and when i read the demo of rxandroidble library, I am wondering why the first can disconnect the ble. @OnClick(R.id.connect) public void onConnectToggleClick() { bleDevice.establishConnection(false) …
0
votes
1 answer

Android BLE callback OnWriteCallback stops after few seconds

I am trying to write next packet synchronously based on the OnCharacteristicWrite call back condition to achieve a maximum throughput. But for some reason it stops triggering OnCharacteristicWrite callback at very initial after 1-2 sec of period and…
0
votes
1 answer

RxAndroidBle stopped when discovering another BLE device

I'm using RxAndroidBle to discovery surrounded devices' service and some characteristics. I met a problem that establishConnection with another device dosn't work after the connection with first device is unsubsribed. When it comes to another…
wdxpz
  • 15
  • 5
0
votes
1 answer

RxAndroidBle: Reading Pre-Defined GATT Characteristics

I have a BLE device with multiple characteristics addressed by default addresses as defined here Things like Manufacturer Name String, Hardware Revision String, Serial Number String etc. Using the UUID class I've attempted several different ways to…