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

MissingBackpressureException even .onBackpressureDrop() is added?

I have problem with MissingBackpressureException. I added few .onBackpressureDrop() just for the test but still getting exception. I added RxJavaHooks.enableAssemblyTracking() for more logs detail. Exception is throwing after 1-3 min. Any idea what…
Esperanz0
  • 1,524
  • 13
  • 35
1
vote
1 answer

RxAndroidBLE - simple read and display 1 value

I'm totally new to Android Studio. My simple goal is to read a value from my BLE112 and display it in an app. I'm using Android Studio 2.4 Preview 7. I've taken the official example code for RxAndroidBLE and cut it way down, but still can't get it…
1
vote
1 answer

RxAndroidBle: Changelog / Release notes?

I'm actually using version 1.1.0 of RxAndroidBle, the latest version is currently 1.3.3. I'd like to know the changes between these two versions, but I couldn't find any release notes in Github or in the website. So that I can tell if it's worth…
ris8_allo_zen0
  • 1,537
  • 1
  • 15
  • 35
1
vote
1 answer

RxJava Zip two observables without completing them

I have two observables: first is from library RxAndroidBle: Observable bluetoothObservable = RxBleClient.create(getBaseContext()).getBleDevice(macAddress) .establishConnection(false) Which connects to device and keeps connection…
1
vote
0 answers

RxAndroidBle BleAlreadyConnectedException

I´m trying to establish a connection that will auto connect again if the connection was once lost. With the start of a commissioning when connection is established again. So the first connection works perfect, and I can set up notifications from…
Erazx
  • 71
  • 1
  • 2
  • 7
1
vote
1 answer

android - Keep bluetooth connection between activities?

let's say i have 2 activities called Activity A and Activity B i display list of devices on Activity A that users can connect to. when users clicked one of the devices, it will connected to selected bluetooth device and exchange some data first to…
1
vote
5 answers

BLE Device dissonect after receive Notifications (BLEGattException Status = 0x8)

My BLE server permanently measures a sensor value and sends a notification with 20 byte user data after each measurement. The goal is to generate as much throughput as possible. On the client side, the value sent by the server is received and…
1
vote
1 answer

How to combine service discovery and read characteristic using RxAndroidBle

I'm new to Rx programming. I'm now trying to use RxAndroidBle to discover BLE devices' services and read some characteristics from the device. I can use device.establishConnection(false) .flatMap(rxBleConnection ->…
wdxpz
  • 15
  • 5
1
vote
1 answer

How to utilize Android BLE bonding feature using RxAndroidBLE Library?

I didn't find anything about that in RxAndroidBLE sample code/description. In vanilla Android BLE API I can easily use BluetoothDevice.createBond() method for that, but i am totally confused how to do the same using RxAndroidBLE.
user6757789
1
vote
1 answer

notification is sometimes not called in notify/write observable with RxAndroidBle

i am currently using RxAndroidBle to write a firmware to a bluetooth device. The way it works i have to send chunks (580 bytes per chunk) of data to the bluetooth device on one WRITE_CHARACTERISTIC_UUID and then listen to the result on a…
1
vote
3 answers

No virtual method com_polidea_rxandroidble_internal_radio_RxBleRadioImpl$$Lambda$1_lambda$new$0()V

I am new in Android Developement and I try to implement Bluetooth LE features on my app. I have some difficulties to run my android project with RXAndroidBLE. This library use lambda and I am not able to make it run. I have updated my gradle…
1
vote
1 answer

RxAndroidBLE BleGattException when autoconnect=true

I'm getting BleGattException with status 19 after a while when observing notifications on connection established with autoconnect=true. According to this source it means that BLE device has forced a disconnect. As it usually happens in about 30sec…
stairs
  • 11
  • 2
1
vote
2 answers

Using RxAndroidBle, how do I subscribe to responses from writing to a characteristic?

The BLE device that I'm connecting to emits bytes on one of its GATT characteristics in response to writes to the characteristic. Clients are supposed to enable notifications on that characteristic, and to interpret change bytes on the…
Ari Lacenski
  • 631
  • 12
  • 18
1
vote
0 answers

OnErrorNotImplementedException somehow still being called with included error handling

Im performing a write to a BLE characteristic, where with these specific devices certain characteristics are not writeable if the peripheral is still locked. I'd like to simply provide a visual notification if this is called while the device is…
Orbit
  • 2,985
  • 9
  • 49
  • 106
1
vote
2 answers

Emit an item one at a time, interact with it until a condition is met, then continue for next item

I have a list of BLE devices, and am using RxJava to interact with them. I need to emit an item from the list, write a characteristic to it repeatedly until X happens, and then proceed to the next item in the list. Current…
Orbit
  • 2,985
  • 9
  • 49
  • 106