【问题标题】:WiFi P2P network in Android ThingsAndroid Things 中的 WiFi P2P 网络
【发布时间】:2017-11-29 08:07:33
【问题描述】:

我想使用 Android Things (5.1) 和几个 Raspberry Pi 3 或使用蓝牙创建一个 P2P WiFi 网络。我遵循了 Android 开发者部分 https://developer.android.com/guide/topics/connectivity/wifip2p.html 中的指南,所以我的 MainActivity 看起来像:

private class MainActtivity { private WifiP2pManager mManager; .... @Override public void onCreate(Bundle savedInstances) { mManager = (WifiP2pManager) getSystemService(Context.WIFI_P2P_SERVICE); .... } }

但是,当我尝试在启用 WiFI 的情况下运行该应用程序时,SystemServiceRegistry 会显示一条消息,说明

没有为 wifip2p 发布服务
并且未检索到 WifiP2pManager。

我该如何解决这个问题?有人知道是否可以使用 WiFi Direct 和 Android Things 创建 WiFi P2P 网络?

【问题讨论】:

  • 很乐意提供帮助,但是:stackoverflow.com/help/mcve
  • @Blundell 我刚刚编辑了我的问题
  • 该协议是否适用于 RPi?这可能是特定的硬件限制
  • 对此有一个开放的功能请求。我建议投票并跟踪它以获取有关未来进展的通知:issuetracker.google.com/issues/37132950
  • 感谢大家,我听从了@Devunwired 的建议,等待问题得到解决,我会采取另一条路...

标签: bluetooth wifi wifi-direct android-things wifip2p


【解决方案1】:

截至目前(Android Things 稳定版 1.0)RPI3B 不支持 WifiP2P,因此尝试使用Google NearBy 2.0 API 作为替代方案,我认为它会满足您的需求。

【讨论】:

  • 如果您认为我的回答有用,请点赞。谢谢!
猜你喜欢
  • 1970-01-01
  • 2017-04-29
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-02-28
相关资源
最近更新 更多