简体   繁体   中英

What to do after service discovery using wifi direct on android?

I implemented service discovery over wifi-direct and I am able to successfully discover the service using http://developer.android.com/training/connect-devices-wirelessly/nsd-wifi-direct.html . But I don't know what to do now? How do I connect to the service? the way I connect to other peers? how do I use a service over wifi-direct? thanks.

After you've discovered the service you should be able to connect to it as if it were a regular WifiP2P client . From there, you can get the IP address of the group owner (which may be either device) and set up a connection (over a Socket, for example).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM