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

RxAndroidBLE do not find devices on android 4.3

Hello I'm using RxAndroidBLE to detect a BLE device. On android 6 >= everything seems to work okay but not on a 4.3 device. My app can only discover the desirable BLE device only once at start. After the device has been discovered no more new…
Bob
  • 1,433
  • 1
  • 16
  • 36
1
vote
0 answers

Android BLE Notification Device WakeUp

I'm using rxAndroidBLE to develop a companion app for a BLE peripheral that triggers alarms on the device. The problem I'm having is that the notifications for the alarm are not properly triggering the alarm on the device. I'm guessing that it's…
1
vote
1 answer

can i skip location permission using RxAndroidBle?

i want to use this RxAndroidBle library without location permission as my bluetooth device is not a beacon device. so can i scan devices without location permission?
Waqas Ahmed
  • 1,321
  • 1
  • 14
  • 23
1
vote
1 answer

Write/Notification handling with rxandroidble

I am trying to implement this example of write/notification handling (Using RxAndroidBle, how do I subscribe to responses from writing to a characteristic?). connectionObservable .flatMap((Function
kosancicivan
  • 55
  • 1
  • 6
1
vote
1 answer

Finishing Bluetooth communication from Android with BLE device

What is the proper way to finish BLE communication from an Android device with peripheral measuring device? Current state: if I'm satisfied with received; write stop measuring on characteristic write power off request unsubscribe…
1
vote
1 answer

RxAndroidBle - How to disconnect all connected devices?

I am using awesome rxandroidble library for BLE control. I keep connection between activities. Before I start scanning, I want to disconnect all connected devices first. Sometimes It is not working if there are many connections. This is the…
mudin
  • 2,672
  • 2
  • 17
  • 45
1
vote
1 answer

How can I connect two devices together

I'm new to reactive programming and this library and I'm trying to write an android app that will be able to send messages back and forth with other phones having the same app. I've written a BleAdvertiser class which basically broadcasts the…
Kyle
  • 366
  • 3
  • 17
1
vote
1 answer

RxAndroidBle: If client is in observable state how to perform Read and Write operations?

While establishing connection i used .asObservable() property to stay connected. bleDevice = rxBleDevice; rxBleDevice.establishConnection(false) .flatMap(RxBleConnection::discoverServices) **.asObservable()** …
Salman Naseem
  • 462
  • 4
  • 17
1
vote
2 answers

Continue scanning for other BLE devices while connecting to one

I want my app to scan continuously for up to 3 different BLE peripherals (identified by MAC address). When one device is found, I stop scanning for it and connect to it. Code: static Observable bleSharedScanner = MyApplication …
Robert Lewis
  • 1,847
  • 2
  • 18
  • 43
1
vote
1 answer

BLE device writeCharacteristic failing

Trying to get data from a BLE blood pressure device. Docs say that the date/time must be synced each time the device is connected. Code: interactionSub = Observable.concat( deviceConnection .writeCharacteristic(…
Robert Lewis
  • 1,847
  • 2
  • 18
  • 43
1
vote
1 answer

Determine Characteristic Notfication emission count by first emission

I am currently implementing a protocol for a Bluetooth device and i am using the RxAndroidBle Library (version 1.4.3). I have to request data from the device by writing to characteristic and then listening to the response via a characteristic…
tiqz
  • 147
  • 1
  • 2
  • 8
1
vote
1 answer

AndroidSchedulers.mainThread stopped working in patch rxAndoidBle 1.4

Before the 1.4 update you could just write: .observeOn(AndroidSchedulers.mainThread()) and import rx.android.schedulers.AndroidSchedulers; but now I can not make this work. Is this moved / removed or does it exist another implementation now to…
1
vote
0 answers

RxAndroidBle read operation for large data size

I am using RxAndroidBle library for reading the values from my BLE devices to my android app. App does multiple reads on BLE peripheral device as shown in the code below. public void longRead() { // if (isConnected()) { …
Avijeet
  • 365
  • 4
  • 14
1
vote
1 answer

RxAndroidBle connection timeout

I am connecting to a discovered device and reading RSSI periodically. I need to know exactly when the connection is lost. Is there any way to specify connection timeout after which I will receive RxBleConnectionState.DISCONNECTED? Now I'm still…
jacz
  • 83
  • 7
1
vote
0 answers

Can't connect to BLE device on Android 7.1.2

I have an Android app which uses the RxAndroidBLE library to connect to a bluetooth device(a PCB with a RN4020 bluetooth module). On my Samsung Galaxy Tab SM-T310 (Android 6.0.1) it works fine. On my Motorola Moto G3 (Android 7.1.2) it connects, but…
Remko
  • 11
  • 2