Comments (4)
Hello,
I believe you're referring to Android BLE Library instead of this one, right?
The Kotlin one (which I'm rewriting, actually) is aiming to replace the Java-baseed one.
from android-ble-library.
You might be right. I followed the Blinky example referenced from your Kotlin-BLE-Library. I basically extended the BleManager class, and this is where I got these callbacks. I assumed that the Blinky code was using your Kotlin library. Sorry for the confusion.
My goal is to separate the BLE communications from the UI and place it in a separate, domain-specific module. The examples in the README file in this project refer to some UI elements, like buttons and viewModelScope. I would love to see an example of pure BLE connection, scanning, etc.
from android-ble-library.
In this class you have "Blinky" implementation of the Bluetooth LE layer. It is build using this library (Android BLE Library).
Remote device is exposed to the app via an interface named Blinky
. The implementation is private and can be replaced with a mock, for example.
The library does not support scanning, just Client or Client+Server connection mode. Instead, I would recommend 3 options:
- Using Android Compat Scanner library - if you plan to support Android 4.3+
- Native Android API (e.g.
BluetoothLeScanner
) - if you like callbacks and builders - Kotlin BLE Library
- The current version will soon1 be replaced with a new implementation
Current version of nRF Blinky is using the first approach, you may find it here.
I would recommend option 3 and waiting for version 2.0, if you have time, otherwise any other implementation.
Footnotes
-
I am working on client side at the moment and how to publish something in coming weeks ↩
from android-ble-library.
from android-ble-library.
Related Issues (20)
- Ask a question, thank you HOT 1
- Want to get the characteristic on which the data was received for the characteristics I have subscribed to get notified for HOT 2
- Concurrent modification exception while notifying device disconnected
- Disconnect not working on various Samsung devices HOT 2
- No response from writeCharacteristic HOT 5
- Question: Will this allow me to send HCI Level Commands? HOT 1
- I stoped receiving notifications even when i have still not get all data HOT 23
- Sometimes causing system Bluetooth to crash. HOT 4
- Notification does not clear after setup a device HOT 3
- Connection interval changes on its own HOT 3
- OTA upgrade problem HOT 1
- Cannot connect the BLE device HOT 6
- BLE Scanner stop working
- Scanner issue
- Internal write characteistic and dead system exception HOT 1
- Issue with auto connect HOT 1
- Need help with configuration HOT 1
- Issue with disconnect question HOT 3
- Oppo not show Bonding message 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 android-ble-library.