startScan() in WifiManager deprecated in Android P

前端 未结 7 2082
没有蜡笔的小新
没有蜡笔的小新 2020-12-08 05:02

How to get scan result from wifi for example every 3 seconds, without mWifimanager.startScan();

Google says :

startScan() This method was

7条回答
  •  無奈伤痛
    2020-12-08 05:29

    StartScan() method is deprecated in Android P and new RTT protocol from 802.11mc standard has to be used with trilateration Algorithms. https://android-developers.googleblog.com/2018/03/previewing-android-p.html

    X,Y position of the AP should to be knonw for accurate positioning and the AP should support 802.11mc's Fine Time Measurement. Intel® Wireless-AC 9260 support 802.11mc and several APs start supporting 802.11mc standard.

    A couple of examples:

    • https://medium.com/@rafaelmiguel.ortega/android-p-first-taste-of-rtt-support-febefb679775
    • https://medium.com/@plinzen/perform-wifi-round-trip-time-measurements-with-android-p-9ffc5277ac6a

提交回复
热议问题