Scanning for wifi signals only in 2.4Ghz band

后端 未结 4 1137
长发绾君心
长发绾君心 2021-02-09 11:42

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:26

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

提交回复
热议问题