Comments (5)
Hi. Thanks for replying so fast!
You are right, I didn't provide enough info, so I've rechecked to paste the logs here and found some (more descriptive) errors. I don't know how I missed them.
D setCharacteristicNotification() - uuid: f8083535-849e-531c-c594-30f1f86a4ea5 enable: true
D QUEUED CharacteristicWriteOperation(125660900)
D STARTED CharacteristicWriteOperation(125660900)
I RUNNING CharacteristicWriteOperation{MAC='XX:XX:XX:XX:XX:XX', characteristic=[uuid='...', hexValue=[...]]}
I MAC='XX:XX:XX:XX:XX:XX' onCharacteristicWrite(), status=0, value=[uuid='...']
W Characteristic ... supports properties: [ WRITE INDICATE ] (40) does not have any property matching [ READ ] (2) <--- The error
D QUEUED CharacteristicReadOperation(91684627)
D FINISHED CharacteristicWriteOperation(125660900) in 442 ms
D STARTED CharacteristicReadOperation(91684627)
I RUNNING CharacteristicReadOperation{MAC='XX:XX:XX:XX:XX:XX', characteristic=[uuid='...']}
D Could not read after AuthRequestTX: com.polidea.rxandroidble2.exceptions.BleGattCannotStartException:
GATT exception from MAC address 'XX:XX:XX:XX:XX:XX', with type BleGattOperation{description='CHARACTERISTIC_READ'}
D FINISHED CharacteristicReadOperation(91684627) in 37 ms
I MAC='XX:XX:XX:XX:XX:XX' onConnectionStateChange(), status=0, value=0
D Connection operations queue to be terminated (MAC='XX:XX:XX:XX:XX:XX')
com.polidea.rxandroidble2.exceptions.BleDisconnectedException: Disconnected from MAC='XX:XX:XX:XX:XX:XX' with status 0 (GATT_SUCCESS)
at com.polidea.rxandroidble2.internal.connection.RxBleGattCallback$2.onConnectionStateChange(RxBleGattCallback.java:81)
at android.bluetooth.BluetoothGatt$1$4.run(BluetoothGatt.java:307)
at android.bluetooth.BluetoothGatt.runOrQueueCallback(BluetoothGatt.java:874)
at android.bluetooth.BluetoothGatt.-$$Nest$mrunOrQueueCallback(Unknown Source:0)
at android.bluetooth.BluetoothGatt$1.onClientConnectionState(BluetoothGatt.java:302)
at android.bluetooth.IBluetoothGattCallback$Stub.onTransact(IBluetoothGattCallback.java:128)
at android.os.Binder.execTransactInternal(Binder.java:1285)
at android.os.Binder.execTransact(Binder.java:1244)
D Connection Disconnected/Failed: com.polidea.rxandroidble2.exceptions.BleDisconnectedException: Disconnected from MAC='XX:XX:XX:XX:XX:XX' with status 0 (GATT_SUCCESS)
D QUEUED DisconnectOperation(4749679)
D setCharacteristicNotification() - uuid: f8083535-849e-531c-c594-30f1f86a4ea5 enable: false
D STARTED DisconnectOperation(4749679)
I RUNNING DisconnectOperation{MAC='XX:XX:XX:XX:XX:XX'}
D onConnectionStateChange newState: RxBleConnectionState{DISCONNECTING}
Looks like the "read" operation doesn't exist, I guess I'm not doing the auth correctly. I've seen some post of this already, so I'll check those to see if I can get a fix. Again, thanks for your get.
from rxandroidble.
Hello, thanks for using the library!
Unfortunately you didn't provide much context in the logs so I can only guess that the connection is not being kept alive. Connection should be kept alive as long as the subscribers to RxBleDevice#establishConnection
are subscribed.
Is it the case?
from rxandroidble.
@Unai-HP Did you happen to fix the issue?
from rxandroidble.
Yes, I forgot closing the issue, sorry.
from rxandroidble.
I am glad that you were able to find a fix.
If you can disclose it — please post the root cause and solution for the problem — other people who would come here later could benefit from that. Thanks in advance!
from rxandroidble.
Related Issues (20)
- Building fork help HOT 6
- It is not possible to disconnect the Bluetooth while it is in the process of connecting. HOT 1
- BleGattCharacteristicException while readCharacteristic HOT 12
- scanResult.bleDevice.name not showing Ble updated name HOT 1
- BLUETOOTH_SCAN set usesPermissionFlags="neverForLocation",Is there a problem? HOT 2
- GenericFailure<CharacteristicValueUpdateError> HOT 11
- Send long bytes twice HOT 2
- Write request is not processed in the random order HOT 2
- Long Bytes Send HOT 8
- Creating a Fork HOT 2
- Set Preferred PHY / Read PHY HOT 2
- RxBleClient mulit connections HOT 4
- Is the library still maintained? HOT 3
- Android 14 breaking change HOT 15
- Google Pixel 5 loses bonding info after BT adapter cycle HOT 4
- Metode readcharacteristic not stream HOT 2
- In the case of unsuccessful Bluetooth connection, actively disconnect without executing context. unregisterReceiver (receiver); At this point, there may be multiple Bluetooth broadcast registrarReceivers, which may crash on some Huawei phones due to a broadcast limit of approximately 1000. Suggest fixing this issue. HOT 2
- Can't scan after connect dispose/clear HOT 1
- Add `advertisingSid` property to `ScanResult` and `RxBleInternalScanResult` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rxandroidble.