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
3
votes
1 answer

Using multiple .subscribe() statements with RxJava

My Android app for a BLE peripheral writes to 2 different device characteristics and receives notifications from 2 others. The developers of the RxAndroidBle library caution against multiple subscriptions on the same RxBleConnection instance, but I…
3
votes
2 answers

BxAndroidBle cannot read device, status=22

I am having troubles with reading a Ble device and using the RxAndroidBle library. I keep getting this error: BleGattException{status=22, bleGattOperation=BleGattOperation{description='CONNECTION_STATE'}} Can anyone look at my code and see what I…
Glennmen
  • 33
  • 3
  • 12
3
votes
2 answers

How do I effectively read temperature from two BLE devices at the same time?

First of all, I am using RxAndroidBLE library to manage my BLE connections. I have two SensorTag devices and I want to read temperature from both at the same time. For example, I'd like to read the temperature from both devices exactly every 500ms…
Guy
  • 6,414
  • 19
  • 66
  • 136
3
votes
3 answers

How to correctly use UUID.fromString method?

I am trying to read/write these ble characteristics: Right now, I'm trying to read AA01* I am using this library to do it. Here's my code: private void connectToSensorTag(RxBleDevice rxBleDevice) { …
Guy
  • 6,414
  • 19
  • 66
  • 136
3
votes
1 answer

Sending the list of commands to device using RxAndroidBle (rxJava)

I am trying to send list of command to device via rxJava. Here is my code: public void startWriteCommucation(final ArrayList b) { if (isConnected()){ connectionObservable .flatMap(new…
KolinLoures
  • 130
  • 2
  • 10
2
votes
1 answer

Android BLE logcat error: E/bt_btif: bta_gattc_process_indicate, ignore HID ind/notificiation

I have an app which communicates with a BLE device. It sends data packets @ 40hz to the phone. I'm using RxAndroidBle and everything works as it should (mostly anyway) I'm currently trying to optimise for cpu and battery, and noticed for each packet…
OliverDeLange
  • 643
  • 5
  • 19
2
votes
1 answer

What is the status of RxAndroidBle and RxJava3?

RxAndroidBle is a great piece of software and has reduced development time for Ble projects and has increased stability and readability significantly. I just want to ask, what the status is of the rxjava3 branch of RxAndroidBle? It says it is a test…
2
votes
1 answer

UndeliverableException thrown within a RxAndroidBle stream

I have a misbehaving BLE device (temp sensor) that keeps throwing a status 8 (GATT_INSUF_AUTHORIZATION or GATT_CONN_TIMEOUT) exception everytime i try to connect to the device. I'm not concerned about this exception as the device is faulty. However,…
Mannie
  • 1,608
  • 1
  • 21
  • 33
2
votes
1 answer

Why can we pair with the BLE device, without displaying system Dialog, by using BroadcastReceiver?

I'm using RxAndroidBle library to scan and connect with BLE devices. What I also need is to pair with this found device, without displaying system dialog about the key pairing. The bonding mechanism is JustWorks. I've already achieved that by…
Denathan
  • 141
  • 10
2
votes
1 answer

RxAndroidBle receive notifications faster

I'm quite new in RxJava. I try now RxAndroidBle and compare it with Android API implementation for BLE. My peripheral sends a lot of notifications at once (about 30kB in 512b chunks). In Rx it takes about 10-12 seconds to receive them all. When I…
2
votes
0 answers

BLE different MTU for different implementations

I have tried different implementations of BLE connection on Android. One with RxAndroidBle and another one with simple Android API. I used RxAndroidBle example app for testing. I connect to the same peripheral with the same service and…
2
votes
2 answers

Log: Queue's awaitRelease() has been interrupted abruptly while it wasn't released byte release() method

Below is a section of logcat which contains the message I'm occasionally seeing: Queue's awaitRelease() has been interrupted abruptly while it wasn't released byte release() method. The "byte" seems to be a typo. Searching the project for the string…
Robert Lewis
  • 1,847
  • 2
  • 18
  • 43
2
votes
1 answer

RxAndroidBle : Periodic advertising scan

I need to scan ble advertising permanently while i am not connected to my device to find it and know when connect to it (specific product). This scan is realized in foreground service to match 8.0 prerequisite. To preserve a few battery, i want scan…
2
votes
1 answer

Resetup notifications in RxAndroidBle if a connection is lost

I am trying to set up notifications using RxAndroidBle, however when the connection to the peripheral is lost, the notification that I set up needs to be created again. I am creating notifications like so: connectionObservable …
2
votes
1 answer

RxAndroidBle - Auto connect issue

I am using RxAndroidBle library: This code is working fine as expected, on click of Connect button on UI, it establishes connection. Issue coming up when I wanted the auto-connect to the device when the device comes back to range. I don’t want to…
Molay
  • 1,154
  • 2
  • 19
  • 42
1
2
3
17 18