WifiP2pManager回报CreateGroup忙状态 [英] WifiP2pManager return BUSY state on CreateGroup

查看:847
本文介绍了WifiP2pManager回报CreateGroup忙状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时,当我尝试创建一个组Wi-Fi直连它返回回

sometime when I try to create a group in WifiDirect it returns back

WifiP2pManager.BUSY

消息作为失败原因。我不知道为什么会这样。

message as reason for failure. I am not sure why this happens.

但是,如果我重新启动WIFI接口,它会再次工作。可能是什么可能的原因?这是如何能够避免?有没有什么办法来克服这一点,如果它发生?

But if I restart the WIFI interface it will again work. What could be the possible reason for this? How this can be avoided? is there any way to overcome this if it ever happens?

感谢

推荐答案

在我的情况,我得到这个错误,因为我并不想再次创建之前删除组。在这种情况下,WifiManager返回一个忙状态。但是,一旦我试图再造一个新的正常工作之前关闭该组。

In my case I was getting this error because I was not removing the group before trying to create it again. In that case the WifiManager is returning a BUSY state. But once i tried to close the group before recreating a new one it works fine.

希望这可以帮助别人。

这篇关于WifiP2pManager回报CreateGroup忙状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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