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

BleGattException status return 133 (onClientConnectionState() - status=133)

When I connect ble after I try to open the notification, but often return BleGattException status = 133, sometimes it will sometimes not . this is my code : mConnectingDevice.establishConnection(false) .doOnNext(this::storeConnect) …
Jeong Woo
  • 65
  • 1
  • 9
2
votes
3 answers

Android BLE connects in background after disconnect

We are using RxAndroidBle 1.3.1 to connect to BLE devices from Android. On certain phones (currently I'm seeing this on an LG V20 [LG-H918], Android 7.0), after our app disconnects, the phone will continue to connect without any user input. When we…
Ken DeLong
  • 929
  • 2
  • 8
  • 27
2
votes
1 answer

RxAndroidBle scanBleDevices(UUID...) not firing

I am having trouble using the scanBleDevices method when passing it a (valid) UUID - the subscribe will never fire. Currently I have a working prototype using the usual android methods of scanning, connecting, read/write, but I want to update my…
Ethan
  • 1,567
  • 11
  • 16
2
votes
2 answers

RxAndroidBle Multiple Characteristic Notifications and Read/Write

I'm having issues setting up notifications on multiple characteristics. I've reviewed the documentation and many of the examples only cover very granular situations. My use case is as follows: 1. scan for devices 2. user selects device to connect to…
lorenzo
  • 494
  • 6
  • 23
2
votes
1 answer

RxAndroidBle WRITE_TYPE_DEFAULT or WRITE_TYPE_NO_RESPONSE

I was wondering which strategy the RxAndroidBle library uses regarding write acknowledgements: WRITE_TYPE_DEFAULT or WRITE_TYPE_NO_RESPONSE? Furthermore, should I wish to set (or query) this setting, how might one do this in RxAndroidBle? I'm in the…
Steve Yohanan
  • 757
  • 5
  • 17
2
votes
1 answer

rxandroidble: ble device disconnected for long duration: App goes to sleep

I am using rxandroidble using autoconnect = true to continuously monitor data from a sensor. The app continuously scans for sensors it has previously connected to. The data monitoring and scanning for sensors should continue all night, even if the…
seano
  • 21
  • 4
2
votes
2 answers

Logging scanResult in Polidea - RxAndroidBle Scanning

I am trying to use the RxAndroidBle lib (https://github.com/Polidea/RxAndroidBle). I want the app the start and scan for BLE devices. I want to print the found devices in the LogCat. How can I do this? RxBleClient rxBleClient; RxBleScanResult…
2
votes
1 answer

Error obtaining client on RxAndroidBLE

I'm not able to obtain the client. I'm starting on Android development, so maybe it's a config/newbie mistake, but nothing I've tried/searched works. Each time I call "RxBleClient.create(context);", I get the following error: FATAL EXCEPTION:…
1
vote
1 answer

Sending data over the air and after completion end the operation using RxAndroidBLE

I am trying to send the 128 bytes of the block to BLE Controller using the RxAndroidBle library. the flow to send data from mobile to BLE controller is as follows Connect with BLE Controller Start OTA (sending 1) Send CRC (of the data block) Send…
Hunt
  • 8,215
  • 28
  • 116
  • 256
1
vote
1 answer

Characteristic cant be written more than once

I'm creating a simple app which should transmit input from a game controller to a HM-10 Bluetooth module. The code should write a characteristic which includes the input data each time when a new input was detected, but at first the…
1
vote
1 answer

RxAndroidBLE already connected and can't send data to IoT device

I have an IoT device with BLE on it and also I have a smartphone which support BLE protocol. I am using RxAndroidBle: com.polidea.rxandroidble2:rxandroidble:1.11.1 The problem is to communicate each other. I have established connection: …
Arkadiusz
  • 86
  • 8
1
vote
2 answers

Could not resolve com.github.Polidea:MultiPlatformBleAdapter:0.1.7

How to fix this problem after install react-native-ble-plx.Is there any solution for direct react native installation instead of bridging native modules?
Majid Aziz
  • 64
  • 10
1
vote
1 answer

iOS Swift: Can't read iBeacon manufacturer data (raw data Android equivalent)

I am using this iBeacon BLE device https://www.beaconzone.co.uk/LC01BodyTemperature and trying to read its temperature data. I've successfully managed to do it in Android Kotlin using RxAndroidBle by accessing ScanResult.scanRecord.bytes and now I'm…
user14806416
1
vote
1 answer

RxJava take(1) completes wheras Observable.just() does not

I use RXAndroidBle to connect to Bluetooth devices. I use establishConnection to get the connection observable and want to convert this Observable to an Completable. This code works and the completable completes as expected: connectionObservable …
mexes
  • 117
  • 7
1
vote
0 answers

RxAndroidBle: BleDisconnectedException: Disconnected from MAC='XX:XX:XX:XX:XX:XX' with status 0 (GATT_SUCCESS)

I'm working on an application that uses your framework and I faced into the next issue after my phone connected with ble device after few seconds: com.polidea.rxandroidble2.exceptions.BleDisconnectedException: Disconnected from…
T_Anton_T
  • 11
  • 1
  • 4
1 2
3
17 18