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

Rewriting connection method to utilize Rx

I'm rewriting a method in a library to utilize Rx. The below code example is the original method. public void connect(ConnectionListener connectionListener) { //...... RxBleDevice device = mRxBleClient.getBleDevice(builder.toString()); …
Orbit
  • 2,985
  • 9
  • 49
  • 106
0
votes
1 answer

Android BLE iBeacon advertisement packet larger than expected

I'm attempting to get an estimated range to a BLE device, given the devices RSSI and calibrated transmission power. The calibrated txPower is supposedly emitted as the last byte in the peripherals iBeacon advertisement packet. These packets,…
0
votes
1 answer

Rxandroidble-The method scanBleDevices(UUID... filters) is not support for two types service

I got a problem that the method scanBleDevices(UUID... filters) cannot support to discover double kind of devices with different UUIDServices. I guess that the relationship between the args are AND, but not OR. But How could I get the double kind of…
Botasky
  • 35
  • 8
0
votes
1 answer

RxAndroidBle rxBleConnection.writeCharacteristic

I am running the entire sample application provided in RxAndroidBle from scanning to discover services to writeCharacteristic. I am trying to debug into the flow and put a break point in onWriteClick() of the…
0
votes
1 answer

RxAndroidBle how to do write to ble device correctly?

Hi i am trying to build my first app with RxJava and BLE and i have a question: I made a wite(byte b) method in singletone class(that i use for connection, notifications, etc..). So now if i want to write data to BLE device i call this method. I…
user6757457
0
votes
1 answer

RxAndroidBle crash on subscribe to multiple characteristics

I'm currently working on an Android app for a proprietary Bluetooth Low Energy device. I decided to use RxAndroidBle and I'm happy with it's relative ease of use compared to the built-in bluetooth stack. Where I'm running into problems: I need to…
KG6ZVP
  • 3,610
  • 4
  • 26
  • 45
0
votes
1 answer

Max number of connections

I have read that Android 4.4+ supports 7 connections open at a time. My question is: does RxAndroidBle handle queuing of connection operations when this number is reached, or is it up to the user of the library to implement a queue for this?
starman
  • 356
  • 1
  • 4
  • 11
0
votes
1 answer

Issue with Notification and Disconnect

We are trying to upgrade existing app with your framework, other things are working fine like connection/read/write however we are facing issues with Notification/Disconnect Can you please guide for following scenarios:- Need call back for…
0
votes
1 answer

How to establish connection and then read characteristics in one activity?

Currently modifying the sample code and I am encountering an error when try to establish a connection and then read a characteristic in one activity. I am getting BleAlreadyConnectedException when attempting to read from the device. I am first…
linus
  • 481
  • 5
  • 18
0
votes
2 answers

Managing side-effects with multiple RxJava Observables

I'm working with a BLE GATT service that has two characteristics that work in tandem. One is a write-only characteristic where you can submit a string value as a query and the other is a notify-only characteristic where you receive the response to…
Tim Clemons
  • 6,231
  • 4
  • 25
  • 23
-1
votes
1 answer

When multiple devices connect at the same time, my app crashes with an error

When multiple devices connect at the same time, my app crashes with the below error. Why is this, and how can I resolve it? When I force devices to connect sequentially after scanning, it works nicely. java.lang.IllegalStateException: Exception…
-2
votes
1 answer

Subscribing to notification changes with RxBLe Android

I'm trying to subscribe to notification changes from a BLE device that I built, and print the value of the notification. I know the characteristic UUID that I want to read the notifications from: scanSubscription = rxBleClient.scanBleDevices( …
-2
votes
1 answer

How to perform a read immediately after performing a write using RxAndroidBle?

The RxAndroidBle examples provides an example for how to perform a write after a read, but nothing about a read after a write. I tried to follow the procedure for performing a write after a read, but for my use case, but the flatMap where I perform…
PushingIt
  • 1
  • 1
1 2 3
17
18