Comments (2)
Good catch. The mCallbacks is required, but now it must be set before connecting which isn't obvious. I'll fix it. Thanks!
from android-ble-library.
I'll leave it as is now, just adding some debug logs if connect() is called without callbacks set. This is because some profiles in nRF Toolbox use static manager and they set the activity as callbacks each time it was recreated. This is bad design, but very simple and easy to understand for beginners. And it would again break compatibility, which is broken already...
from android-ble-library.
Related Issues (20)
- Mismatch Java version in sample apps and the library HOT 2
- Server closes all connections with error 0x101 HOT 1
- Android is moving bluetooth scan client to opportunistic more than it should HOT 2
- Send data over 10k charcter HOT 2
- Connection retries block on the main thread HOT 8
- Connection state is not updated when cancelled during the thread sleep time HOT 1
- NullPointerException in BleManagerHandler$3.onConnectionStateChange
- Devices are not reconnecting after upgrade from 2.6.1 to 2.7.0 HOT 3
- Question about support of this lib and the new one HOT 1
- Is there any adaptation for Android 14? HOT 1
- What would cause GATT services to be invalidated on previously bonded peripherals? HOT 2
- Null reference exception when calling disconnect HOT 2
- Sometimes onServiceDiscoverd is not called when connecting. HOT 1
- Samsung Tab S6 Lite: Connection Parameter Negotiation HOT 1
- Catch SecurityException from setCharacteristicNotification HOT 2
- NullPointerException android.bluetooth.BluetoothGattServer.cancelConnection(android.bluetooth.BluetoothDevice)' on a null object reference HOT 3
- Library DefaultMtuSplitter is splitting incorrectly for android OS 14 HOT 8
- How to Catch Exception with RequestFailedException HOT 1
- 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
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.