Create a group using wifi p2p to connect multiple devices

I want to create a connection in which one device will look like a server that will transmit some data to connected devices, and several devices can connect to this device and receive data.

So, I did some research that I found out that we can do this using network service discovery and WiFi peer-to-peer communication. So I made a connection where I can connect one device and transfer data, but I want to create a group to connect several devices, so any help from any of them will be appreciated.

Thank!

+4
source share
1 answer

WiFi-Direct Wi-Fi Peer to Peer .

, P2P - https://developer.android.com/training/connect-devices-wirelessly/wifi-direct.html

WiFi-Direct , , . , , WifiP2pConfig groupOwnerIntent = 15 ( ).

, ( ).

, java Sockets. , , .

, , . . - WiFi Direct (Android 4.0) (3+)

+3

Source: https://habr.com/ru/post/1676325/


All Articles