i trying connect device device , send simple string via wifi direct. able list of peers available how know device need send info to?
the documention @ https://developer.android.com/reference/android/net/wifi/p2p/wifip2pmanager.html outlines scenerio.
with peer discovery using discoverpeers(wifip2pmanager.channel, wifip2pmanager.actionlistener), application discovers neighboring peers, has no way figure out peer establish connection with. example, if game application interested in finding neighboring peers running same game, has no way find out until after connection setup. pre-association service discovery meant address issue of filtering peers based on running services.
try using addlocalservice(), peer devices can discover "simple string" p2p service.
Comments
Post a Comment