Scanning for wifi signals only in 2.4Ghz band

后端 未结 4 567
南方客
南方客 2021-02-09 11:56

I need to scan for available Wi-Fi signals and their strengths. I\'m using wifiManager.startScan(); and asynchronous wifiManager.getScanResult();.

4条回答
  •  感情败类
    2021-02-09 12:31

        final WifiManager wifiManager = (WifiManager)
    
    
    
    context.getApplicationContext().getSystemService(Context.WIFI_SERVICE);                
    
    wifiManager.getScanResults().get(0).frequency >= 2500
    

提交回复
热议问题