通过Android上的蓝牙连接多个设备(多个BLE连接) [英] Connect multiple devices via Bluetooth on Android (Multiple BLE connections)

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

问题描述

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

I am trying to create Client-Server connection network over android devices via blue-tooth(as the connection platform).One device acting as Server and other 4 or five devices as Clients.I have tried many examples from git-hub repository but there is no multi-connectivity implementation.Here is the link I tried for multi connection via blue-tooth https://github.com/arissa34/Android-Multi-Bluetooth-Library

推荐答案

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

First of all, you have to notice this library is for socket communication using RFCOMM protocol which is not Low Bluetooth https://en.wikipedia.org/wiki/List_of_Bluetooth_protocols

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

If you want help, I need more informations, as your android version, a piece of your code and your logs as well.

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

Moreover, you can see this library in work on this game https://play.google.com/store/apps/details?id=com.drgames.domino Using one server and 3 clients in bluetooth.

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

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