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

Tej*_*ula 8 android bluetooth github bluetooth-lowenergy

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

小智 3

首先,您必须注意该库用于使用RFCOMM 协议进行套接字通信,该协议不是低蓝牙 https://en.wikipedia.org/wiki/List_of_Bluetooth_protocols

如果您需要帮助,我需要更多信息,如您的 Android 版本、一段代码和您的日志。

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