Comments (13)
同样希望支持多设备管理
from fastble.
我也需要管理多设备
from fastble.
@HeMing123 多设备管理不做是有原因得,高速通信得情况下,其他设备会断开连接~,无法保证稳定性
from fastble.
那就是说我们想做多设备连接,会遇到不稳定断开的坑,可有什么好的解决方案?
from fastble.
@HeMing123 直白的告诉你,经过我的测试,只是打个比方,类似与传送文件这种持续高速得蓝牙通信情况下,都会导致之前已经连接得还有当前连接得设备断开,android 和 ios都有同样的问题,如果不是高速传输,那就没关系,不过连接上限不同得android手机都不一样
from fastble.
你是怎么管理的多设备?能分享一下吗?
from fastble.
@HeMing123 集合咯,缓存Gatt对象,判断一下连接状态,断开连接的话就定时任务去重连
from fastble.
@HeMing123 记得要及时的关闭gatt连接,另外线程的话要注意内存泄漏之类的问题,做好停止标志
from fastble.
好的,谢谢
from fastble.
@HeMing123 我公司的项目就连接多设备,一双鞋子,同时连接2个设备,高并发,用对列管理,有什么好的demo么
from fastble.
关注该问题,缓存Gatt对象有示例就好了,谢谢@MoonlightSW
from fastble.
我也非常关注这个问题,目前设备采集血糖,血压,体重等多个常见健康类指标。因此APP需要同时集成多款设备
from fastble.
1.2.0版本已支持多连接。
from fastble.
Related Issues (20)
- 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
- ActivityCompat.checkSelfPermission PackageManager.PERMISSION_GRANTED) {
- 蓝牙设备连接成功后,到开始发现服务,中间sleep了 500ms,这里为什么要休眠呢? HOT 2
- 请问一下,怎么设置write no response模式? HOT 1
- 设置MTU值成功之后,如果分包传输设为false,手机app向蓝牙模块发送数据,超过20字节,蓝牙会自动断开 HOT 1
- 手机连手机收发数据可以吗
- 当长按蓝牙设备按钮时,抬起的时候收不到消息了
- Jetpack 出了新的 bluetooth api
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.