android - 在 Android 上通过蓝牙连接多个设备(多个 BLE 连接)

标签 android github bluetooth bluetooth-lowenergy

我正在尝试通过蓝牙(作为连接平台)在 android 设备上创建客户端-服务器连接网络。一个设备作为服务器,其他 4 或 5 个设备作为客户端。我已经尝试了很多来自 git-hub 的例子存储库,但没有多连接实现。这是我尝试通过蓝牙进行多连接的链接 https://github.com/arissa34/Android-Multi-Bluetooth-Library

最佳答案

首先,你必须注意到这个库是用于使用 RFCOMM 协议(protocol) 的套接字通信,它不是低蓝牙 https://en.wikipedia.org/wiki/List_of_Bluetooth_protocols

如果你需要帮助,我需要更多的信息,比如你的android版本,一段代码和你的日志。

此外,您可以在这款游戏中看到这个库 https://play.google.com/store/apps/details?id=com.drgames.domino在蓝牙中使用一台服务器和 3 个客户端。

关于android - 在 Android 上通过蓝牙连接多个设备(多个 BLE 连接),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46927973/

相关文章:

"Android auto"应用程序中未显示 Android 汽车音乐应用程序

android - Samsung Galaxy Tab 2 10.1 在按相机 Intent 拍照后终止进程

ios8 - NSInputStream 从不在 iOS9(经典蓝牙)上使用 HasBytesAvailable

android - google places api 被弃用后如何使用地点选择器

android - 识别标记并获取与之关联的对象的典型方法是什么?

git - 如何从命令行 (Git Bash) 删除远程 Git 存储库?

github - 如何修复 Github Pages 上的 HTTP 404?

github - Jenkins github 插件返回错误 400 "Hook should contain event type"

android - 如何在android中通过蓝牙连接手机和打印机?

android - 从文档中启用 Android 蓝牙