Android Wifi direct multiple connection ad-hoc(Android Wifi 直接多连接 ad-hoc)
问题描述
我尝试在许多 Android 设备之间创建一个 ad-hoc 网络,但我找不到相关文档.
I try to create an ad-hoc network between many Android devices, but I can't find documentation to do that.
我认为 Wifi direct 可以满足我的需求,但是否可以在一台设备上进行多个连接?我看到我们可以做一个充当接入点的设备并与许多设备通信,但是我们可以从一个客户端设备通信到两个接入点设备吗?
I thought Wifi direct could work for what I want, but is it possible to have multiple connection on one device ? I saw that we could do a device acting like an access point and communicate with many devices, but can we communicate from one client device to two access point devices ?
例如,我有 3 个设备:A -> B -> C
I have for example 3 devices: A -> B -> C
A"设备需要与C"设备通信,但距离太远,所以我希望 A&B 之间有 ad-hoc wifi 直接连接,B&C 之间有 ad-hoc wifi 直接连接,所以A 可以与 C 通信.它还应该与 3 个以上的设备一起使用.
The "A" device need to communicate with "C" device but he's too far away, so I want to have ad-hoc wifi direct connection between A&B and ad-hoc wifi direct connection between B&C, so A can communicate with C. It should also work with more than 3 devices.
谢谢!
推荐答案
Android 目前不支持 ad-hoc WiFi -- 抱歉!
Android does not have support for ad-hoc WiFi at this time -- sorry!
更新(2019):Android 已经支持 WiFi Direct 有一段时间了,这个答案还没有更新.
Update (2019): Android has supported WiFi Direct for a while, and this answer has not been updated.
你的方案会奏效.只要 B(组所有者)在 A 和 C 的范围内,A 就可以与 C 连接.
Your scenario would work. A would be able to connect with C as long as B (the group owner) is within range of both A and C.
有关更多信息,请参阅 Android 的开发者文档:
See Android's developer documentation for more info:
https://developer.android.com/guide/topics/connectivity/wifip2p
这篇关于Android Wifi 直接多连接 ad-hoc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Android Wifi 直接多连接 ad-hoc
基础教程推荐
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01