I want to create a group for multiple devices by wifi direct p2p protocol in a specific manner. I want to gather data from other devices to one device. I should make the receiver device, the group owner. for example by clicking a button, it should create a group and send out a broadcast to others so that they join the group automatically. (I know that the device should accept the connection at first, but I assume that we don't need it.)
I've searched a lot, but I can't find any clue. I appreciate any advice or comment on my problem.
Basically, there is no broadcasts available with the API.
instead, you use the createGroup to form a group, then create local service, and then make sure the peerDiscovery is on (I'm rather sure the device and the local service is only visible to others when the API is active)
In others simply do Peer/Service discovery and connect once you find what you are looking for.
You could also workaround the dialog, I explained two ways in my blog.