How to auto-accept Wi-Fi Direct connection requests in Android

前端 未结 4 714
醉话见心
醉话见心 2020-12-08 05:57

I have 2 Android devices using WiFi Direct. On one device I can get information about the other device using the WifiP2pManager class, and request a connection

4条回答
  •  抹茶落季
    2020-12-08 06:32

    Based on the comments, do you really need to connect to the devices if you just want to track and log the vehicles around you ?

    I don't know the scope of the project, but you could simply use the WifiP2pDeviceList that you get when you request the peers in the WifiP2pManager. You could get the list of the devices (~= vehicles) around you and could log this.

    Connection is useful if you want to send more detailed information I guess.

提交回复
热议问题