Comments (2)
ignore the characteristic, listen to the others , crash will not happen.
if (characteristic.uuid.toString().endsWith("2b17")){
continue
}
But i do want to listen the characteristic
from rxbluetoothkotlin.
Your characteristic MUST have the descriptor with this id 00002902-0000-1000-8000-00805f9b34fb
(https://github.com/VincentMasselis/RxBluetoothKotlin/blob/master/rxbluetoothkotlin-core/src/main/kotlin/com/vincentmasselis/rxbluetoothkotlin/internal/GattConsts.kt) because RxBluetoothKotlin needs to write some bytes to this descriptor to enable notification.
Actually, I think it's a bug from the device you're connecting because your characteristic contains the flag BluetoothGattCharacteristic.PROPERTY_NOTIFY
but it doesn't has the required descriptor to listen for notifications.
from rxbluetoothkotlin.
Related Issues (11)
- Why is this code commented out?
- We have an exception when running demo-app from this repo. HOT 3
- The permissions changed on Android 12 :tada: HOT 1
- BLE Enable notifications and read characteristic notification (listen change) HOT 1
- Usage of implementation delegation instead of `Simple` classes
- Cannot access class 'io.reactivex.Flowable'. Check your module classpath for missing or conflicting dependencies HOT 2
- Missing LICENSE
- Type mismatch: inferred type is Application but Boolean was expected HOT 1
- Usage of `value class`
- Migrate to maven central 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 rxbluetoothkotlin.