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 2 subscribe to two different characteristics in Kotlin

I apologise if this is a duplicate question, I could not find a helpful answer anywhere. I am also a beginner in reactive programming so I am sorry in advance for silly questions. I am using rxandroidble2 in a Kotlin Android app. I can successfully…
1
vote
0 answers

how to connect BLE device & send MTU request and get characteristic UUID of service by Service UUID step by step

I am using RxAndroidBle library to connect to android devices, but I couldn't find any way to connect BLE device and send MTU request and get characteristic UUID of service by Service UUID in a single requet Describe the issue I need to connect BLE…
Hossein Kurd
  • 3,184
  • 3
  • 41
  • 71
1
vote
0 answers

RXBle Start scan does not work on Android 10 (Huawei P30)

I have problem to start BLE scan on Huawei P30 running on Android 10. It works on Huawei P20 running Android 9 and many other devices, but Android 10 is weird. In application I have Start Scan button, so this is scan when application is running(no…
Martin K
  • 61
  • 1
  • 10
1
vote
1 answer

How to include the RxAndroidBLE library into my project

I have no experience to include an external library to my project. So I need some help. It says - to include in Android Studio for Gradle compile "com.polidea.rxandroidble2:rxandroidble:1.10.1" But where should I place this line? And how my project…
john7
  • 123
  • 1
  • 9
1
vote
1 answer

RxAndroidBLE : Enable Notification on characteristic without Service-Discovery

I have been using RxAndroidBLE 2 only recently and I am looking for a solution where I can enable notification on a characteristic without having to call discoverServices(). In my case the call takes a lot of time (5-10sec). It is ensured that the…
1
vote
1 answer

How do I format a byte array to be sent to a characteristic on a BLE device?

I connect to my device and attempt to write to its characteristic: scanSubscription = rxBleClient.scanBleDevices( ScanSettings.Builder() // .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY) // change if needed //…
Martin Erlic
  • 5,467
  • 22
  • 81
  • 153
1
vote
1 answer

BleGattCharacteristicException: GATT exception status 129 when trying to Indicate->write->notify to BLE glucometer

I am trying to read all the records stored in a glucometer using rxAndroidBle library. According to several resources that I have found the process consist of three main steps after pairing/bonding and connecting to the device: Setup indications in…
Danlos
  • 25
  • 5
1
vote
1 answer

setupNotification returns "Error already connected" whereas no connection request is send

I'm making an Android application with some BLE interraction using the RxAndroidBLE API. I followd examples guidelines and samples from https://github.com/Polidea/RxAndroidBle I establish a BLE connection with a specified device, later while…
A.KYROU
  • 23
  • 3
1
vote
1 answer

How to maintain connection state between many Activities?

According to rxandroidble, dispose() should be called in onPause() of Activity lifeCycle, then the BLE connection will be close? And I can only connect BLE device in new Activity, and if I don't call dispose(), it will come up with…
Andy_Gu4y
  • 41
  • 3
1
vote
0 answers

RxAndroidBLE: The mapper returned a null SingleSource

I use the following code to listen for an unsolicited message from my Bluetooth LE device. I am expecting a byte array with text that says "datc00099", for example. Instead, the mapper is returning a null SingleSource. What could be going wrong…
Martin Erlic
  • 5,467
  • 22
  • 81
  • 153
1
vote
1 answer

How to get characteristicUuid?

I use RxAndroidBle https://github.com/Polidea/RxAndroidBle library to work with ble device. But I have a problem with finding characteristicUuid. I do all from README, but can't find characteristicUuid. In read() need to execute .flatMapSingle {…
1
vote
1 answer

RxBluetoothKit with RxAndroidBle

I am currently developing a xplattform Android/iOS App and evaluating, if iOS devices using RxBluetoothKit can communicate with Android devices running RxAndroidBle from Polidea GitHub? I already looked through the FAQ, Stackoverflow and Gitter…
StackHelge
  • 75
  • 1
  • 8
1
vote
1 answer

Is there any way to uniquely identify BLE device?

I want to store information about BLE device locally, but I cannot rely on MAC address because it changes too often. Is there any way to do that?
darkchaos
  • 197
  • 1
  • 11
1
vote
0 answers

RxAndroidBle - Long write and listen to notification characteristic

I'm very new when it comes to the android / BLE space. I'm attempting to write to a characteristic and listen on the notification using the RxAndroidBle library. I've looked at many implementations that just seem to be different enough that I can't…
varXchar
  • 11
  • 3
1
vote
1 answer

RxAndroidBle: JustWorks bonding and operation timeout issue

I am dealing with characteristics that need encryption, so Android will automatically create a bond to perform the write/read operations. There is a possibility that a bond will be automatically created by the OS. This usually happens when a…
dglozano
  • 6,369
  • 2
  • 19
  • 38