Android的蓝牙API连接到多台设备 [英] Android Bluetooth API connect to multiple devices

查看:259
本文介绍了Android的蓝牙API连接到多台设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

时我们有可能连接多个设备?谁可以共享code我!这个问题困扰了我很长一段时间!谢谢!

Is it possible for us to connect multiple devices ? who can share the code for me! This problem has troubled me for a long time! Thanks!

推荐答案

我会说,code是没有问题的。正确的实施是管理一个线程为每个连接然而,我发现,设备可以连接的数量,以同时基于手机的蓝牙实施的限制。蓝牙规范规定7设备可以连接然而,我发现Android手机只能办理1蓝牙连接,而其他人可以处理6,将真正帮助蓝牙开发社区,如果有人从Android开发团队可以去更深入的在这里。

I would say that code isn't the problem. The correct implementation is managing a thread for each connection however I have found that the number of devices you can connect to simultaneously is limited based on the phone's implementation of Bluetooth. Bluetooth spec states 7 devices can be connected however I have found android phones that can only handle 1 bluetooth connection while others can handle 6. It would really help the Bluetooth development community if someone from the Android development team could go more in depth here.

这篇关于Android的蓝牙API连接到多台设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆