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

RxAndroidBle keeping a persistant connection + Write/Notification handling

I am building an Android application that has specific requirements regarding Bluetooth Low Energy. I need to write to a Write-only characteristic and receive responses on a separate notification characteristic, and I need to do it in many, many…
9
votes
2 answers

Android BLE: "Scan failed, reason app registration failed for UUID"

I am developing an application using the RxAndroidBle library that performs BLE scans regularly about every 30 seconds, and some BLE operations every minute or so. After a couple of hours, usually between 5 and 24h, the scan stops working. Every…
6
votes
2 answers

Combining timeout() with retryWhen()

I'm creating a simple app for connecting with the bluetooth devices using RxAndroidBle library (Cheers Guys for great work!). What I'm experiencing is sometimes when I connect to the device I receive the Gatt error with status 133. I know it may…
Jogosb
  • 155
  • 1
  • 12
6
votes
0 answers

129 error and 133 error from Rxble while read and write operation

BleGattException - occured during first read write operation sometimes it read and write correctly but after reconnects ble device get this exception... if (bleManager.getMacAddress() != null && checkIsSameMac(peripheralModel.address) &&…
5
votes
1 answer

How to receive all notifications in RxAndroidBle

I'm trying to communicate with a BLE data logger/sensor using rxBleAndroid running on both an Android phone as well as the Raspberry Pi using Android Things. I'm currently having an issue, however, where up to about 5 of the first notifications are…
James E
  • 75
  • 1
  • 4
5
votes
1 answer

BLE notification subscription gets 133

1 Android phone (N5X 6.0.1) is running a BLE server, another one (N5X O) is subscribing. Notification for a characteristic can be enabled however, on the write descriptor part, I'm consistently getting a 133. Server.java private void createServer()…
mbmc
  • 5,024
  • 5
  • 25
  • 53
4
votes
0 answers

Getting Already Connected Devices from RxAndroidBle

How do you get already connected Bluetooth devices in RxAndroidBle? For example if a user manually connected a device through Android itself and not your app.
lorenzo
  • 494
  • 6
  • 23
4
votes
1 answer

How to handle 16-bit characteristics in Bluetooth LE

I've been searching for days for the answer to this question. I'm writing an Android app to interface with a Bluetooth Low Energy device. I have the device's 128-bit Service ID UUID, and several 16-bit Characteristic IDs. How do I handle these…
Robert Lewis
  • 1,847
  • 2
  • 18
  • 43
4
votes
1 answer

How to concatenate two observable operations in a linear fashion (do first this thing and after that one finishes do the second thing)?

Polidea has released a new handy library called RxAndroidBle which is very useful for dealing with a lot of issues when you're using vanilla Bluetooth APIs. Before explaining more the idea is to have a POJO model that has all the recent values that…
Aldo Borrero
  • 547
  • 4
  • 11
3
votes
2 answers

How to read raw data from scanned BLE device?

I am using RxAndroidBle Library for my BLE application. Like nrfConnect application I want to read RAW data from BLE device. How to read RAW data from device?
3
votes
0 answers

RxBLELibraries/RxAndroidBle: with status 8 (GATT_INSUF_AUTHORIZATION or GATT_CONN_TIMEOUT)

I'm using RxBLELibraries/RxAndroidBle for connecting mobile-app with peripheral device. The mobile-app work properly on Xperia, Samsung but always return ERR on device AQOUS R5G. My problem on AQOUS R5G is as below: Step1: Pairing with device:…
tui team
  • 31
  • 1
3
votes
1 answer

com.polidea.rxandroidble2.exceptions.BleScanException: Scan failed because application registration failed (code 6) Samsung Galaxy 8

Currently i am working in a application where it involves ble device. I created a service and grnated all permission that a bluetooth application requires and bluetooth is enabled. When the service is started it scans for the ble devices and…
3
votes
1 answer

RxAndroidBle: Setup notification, write on characteristic and wait for notification to proceed

I am using Polidea's RxAndroidBle library to communicate with a Device in my Android application. I am very new to Reactive Programming so I can't figure out exactly how to do the following: Setup Notification in one characteristic (Characteristic…
dglozano
  • 6,369
  • 2
  • 19
  • 38
3
votes
1 answer

RxAndroidBle Scan Timeout

I need help. How to set scan timeout for example 10 seconds when i am using rxandroidble. scanDisposable = rxBleClient.scanBleDevices( new ScanSettings.Builder() …
kosancicivan
  • 55
  • 1
  • 6
3
votes
1 answer

How to connect multiple BLE devices through android application?

I am working on android and BLE device connectivity. I want to connect multiple BLE devices on same time . How to achieve this ?
1
2 3
17 18