wifi-direct

How to be notified when a peer is no longer available in the Wi-Fi Direct range?

杀马特。学长 韩版系。学妹 提交于 2019-11-26 20:17:23
问题 I am developing an Android application based on the use of Wifi Direct API. I have registered in my Activity a BroadcastReceiver in order to be notified about the following Wifi Direct events: WifiP2pManager.WIFI_P2P_STATE_CHANGED_ACTION WifiP2pManager.WIFI_P2P_PEERS_CHANGED_ACTION WifiP2pManager.WIFI_P2P_CONNECTION_CHANGED_ACTION WifiP2pManager.WIFI_P2P_THIS_DEVICE_CHANGED_ACTION I believed that any change in the list of peers (the inclusion or exclusion of a peer in the Wifi Direct range)

WiFi Direct (Android 4.0) with multiple (3+) devices

人走茶凉 提交于 2019-11-26 17:35:51
问题 Like here: Automatic authentication for Android WiFi Direct I want to create a mobile ad-hoc Wifi network with Android devices. But unlike the linked question above I want to use the official Android WiFi Direct API which is availabe since Android 4.0. So is there a way to not only connect 2 devices via WiFi Direct but also three or more? So messages could be passed from one device to another using several other devices in between (therefore spanning a larger distance between the sender and

Can I change the group owner in a persistent group in Wi-Fi Direct?

穿精又带淫゛_ 提交于 2019-11-26 11:08:04
问题 When creating a group via Wi-Fi Direct, I know that I can make a persistent group. My question is: can I create a persistent group, but each time change the group owner (i.e; each turn the group owner will be one of the devices in the group). Also, when creating a persistent group, it is required to accept the connection only the first time, right? 回答1: You can now create a new persistent group via WifiP2pManager.createGroup(..) . It will create a new group and make the calling device (A)

How to get each device's IP address in Wi-Fi Direct scenario?

邮差的信 提交于 2019-11-26 10:29:38
问题 Starting from ICS, Wi-Fi Direct is introduced. Normally, we use the WifiP2pManager class to operate on Wi-Fi Direct, but it seems that it can only retrieve the GroupOwner IP address after connected. But, actually, any device all came negotiate to become the GroupOwner. In Upper Application, we need to get the peer\'s IP address, or each peer\'s IP address in a group so that we can send/communicate with them. How to get each IP address in Wi-Fi Direct? Include own IP address and each peer in