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
1
vote
1 answer

RxJava2/RxAndroidBle: subscribe to Observable from side effects

I have the following use case of a simple BLE device setup process using RxAndroidBle: Connect to a BLE device. Start listening to notification characteristic and set up a parser to parse each incoming notification. Parser will then use a…
1
vote
0 answers

BLE device disconnect, then two opposite exception BleAlreadyConnectedException vs BleDisconnectedException

I'm working on a DFU OTA (device firmware update on the air). To do it, I must connect the device, then send a command to order the device to switch to bootloader mode. After this command the device reboot, thus connection is lost. Just after this…
1
vote
0 answers

No notification data in Write/Notification set-up

After doing my best to understand all the magic in RxJava and the excellent rxandrodible library I'm stuck! The last thing that I need to fix is to setup a write/Notification link in which I write a value - a single value - and after that subscribe…
1
vote
1 answer

How to create Bond or Pairing in BLE using RxAndroidBLE

I want to implement passkey for connect device or establish the connection with BLE device. I have 6 byte passkey, So how we will create bond or pairing and send passkey to the BLE device using RxAndroid library. Can any one give me reference or…
Nitin Karande
  • 1,280
  • 14
  • 33
1
vote
1 answer

RxAndroidBle multiple connections

Background: I am using the RxAndroidBle library and have a requirement to quickly (as possible) connect to multiple devices at a time and start communicating. I used the RxBluetoothKit for iOS, and have started to use RxAndroidBle on my Pixel 2.…
mitchctodd
  • 13
  • 2
1
vote
1 answer

RXAndroid better way to write nested subscriptions

I'm working with an RXBle library for Android. In order to read from a BLE peripheral (BLE device) I end up setting up a number of subscribes, all within one another, like this: Disposable scanSubscription = null; public void startScan() { …
wheresmycookie
  • 683
  • 3
  • 16
  • 39
1
vote
1 answer

How to implement synchronous task queue for RxAndroidBle

Summary I use RxAndroidBle as the BLE communication framework in my project. I receive the data from the notification after writing in the following way: public Observable requestCharacteristic(UUID notificationUuid, UUID writeUuid, byte[]…
Zachary
  • 63
  • 9
1
vote
1 answer

Polidea RxAndroidBle Enable notification

I badly need this to proceed further in my application. I'm very much familiar with Android BLE and using for years. I have the below code to enable notification and it is working for years with my peripheral. onCharacteristicChanged() method is…
Sundeep1501
  • 1,510
  • 1
  • 18
  • 28
1
vote
1 answer

Rxandroid ble Guidelines for handling re-connection

[Update] I am able to reconnect to the ble device after disconnect but can't seem to read or write any characteristics. Logcat spews this out after reconnect, is this my app doing something wrong or is it because of the ble device? 08-09…
1
vote
1 answer

RxAndroidBLE perform BLE scan without queueing scan operation

In my application I'm using RxAndroidBLE library. Thanks for the awesome library. But I have some issues. I'm trying to connect to BLE device using rxBleDevice.establishConnection(false) Device is out of range. Timeout for connect operation is 30…
Kulibin
  • 444
  • 4
  • 12
1
vote
1 answer

RxBleConnection Observable is not emitting

in my android repository layer I am holding a reference to the Android RxBleConnection. I also have a read write function that return an observable, my problem is that this function is being called but not it is not responding because the connection…
1
vote
1 answer

Chaining multiple commands in RxBluetoothKit

Previously I had this question regarding the awesome rxAndroidBle - Writing multiple commands to characteristic The solution works great! Now the time has come to port this app over to an iOS version and I am struggling to find a suitable way to…
Joel Spencer
  • 129
  • 1
  • 8
1
vote
0 answers

RxAndroidBle, scanBleDevices, Android 6+, device are invisible after another app scan

When I use "scanBleDevices" from RxAndroidlBle (on Android 6+), I can see my BLE devices. Then I Use another app that scan BLE. Finally, when I go back to my RxAndroidlBle app and start a new "scanBleDevices" it can't find these BLE devices (other…
1
vote
1 answer

Buffer image from BLE notification with RxJava2

I would like to buffer an image from BLE notification. I get 20 bytes long array in every notification. (There is 15-20ms pause between notifications.) They come in sequence, and I can recognise the first and the last package of the image. Images is…
Szelk Baltazár
  • 363
  • 2
  • 9
1
vote
2 answers

How to obtain BluetoothGatt object from RxAndroidBle

As reported here, I have a legacy app that refuses to connect to one of the peripherals I'm trying to support (works OK with others). RxAndroidBle connects successfully too, and I'm thinking to use it just to establish the connection and hand it to…
Robert Lewis
  • 1,847
  • 2
  • 18
  • 43