Comments (8)
notifyDevice
from fastble.
你好,我在设备连接的时候,如果连接成功就notifyDevice接收参数,但是设备需要配对,配对成功了以后,有一次连接成功,然后notifyDevice就执行了两次,结果收到的数据打印的时候,打印两次,间隔不到2毫秒,请问这样要怎么处理呢?
from fastble.
你好,我在使用的时候每次连接之后,然后再返回上个页面(没有主动断开连接),再次连接的时候BleGattCallback执行次数会累加,这是什么原因呢
from fastble.
bleManager.stopListenCharacterCallback
from fastble.
这个这是移除某个特征值回调监听的吧,会不会是我每次连接的时候是不是都new 了一个BleGattCallback呢?
from fastble.
每次都new没有问题,但记住用完之后调用bleManager.stopNotify。 否则建议不要new
from fastble.
from fastble.
那你就构造一个BleGattCallback的子类对象,一直用它就好。
from fastble.
Related Issues (20)
- I can't get Bluetooth device list HOT 1
- 请问有遇到安卓12平板搜索不到蓝牙设备吗 HOT 2
- 扫描不到电视设备
- code=102 descriptor equals null HOT 2
- APP闪退后 蓝牙是一直打开的 框架获取蓝牙状态一直是关闭的
- 配对问题
- 开个权限邀请我加入这个项目,我来帮你维护吧,可以么 HOT 3
- app运行过程中闪退,异常是框架里的代码 Attempt to invoke virtual method 'boolean com.hihonor.bluetooth.btfreeze.BluetoothBleConnectItem.isSame(com.hihonor.bluetooth.btfreeze.BluetoothBleConnectItem)' on a null object reference com.clj.fastble.bluetooth.BleBluetooth.connect(BleBluetooth.java:10)
- onCharacteristicChanged内存泄漏
- 发送失败: GattException{gattStatus=10} BleException { code=101, description='Gatt Exception Occurred! '}
- 添加服务UUid扫描不到设备 HOT 1
- 我写了一个库,欢迎来围观 HOT 3
- 我已解决notify的那个102 descriptor equals null 的错 HOT 9
- 使用FastBle发送图片的同时使用A2dp协议播放音乐 但是暂停后不能恢复的问题
- FastBle怎么调用无返回的特征值写入,没有看到相关的api呢
- 一个设备可以被多次连接,多次连接成功之后, 断开一次就断不开了。 HOT 2
- 现在的版本是否支持外设模式
- vivoV2241A搜索不到
- onWriteFailure 102 This device not connect! HOT 3
- Is there a trick to set the MTU size? 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 fastble.