从现有的接入点,WiFi功能的设备例如RSSI信号强度笔记本电脑 [英] rssi signal strength from existing access points to wifi enabled device e.g. laptop

查看:252
本文介绍了从现有的接入点,WiFi功能的设备例如RSSI信号强度笔记本电脑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从一个给定的房间内现有的接入点的信号强度读数,而不必连接到他们。我很新的android开发和eclipse所以我真的AP preciate,如果有人可以给我在这个问题上的一些方向。
    }


解决方案

  1. 注册一个广播接收器 SCAN_RESULTS_AVAILABLE_ACTION

  2. 开始使用扫描 wifiManager.startScan()

  3. 在接收器的的onReceive(),使用获得的 wifiManager.getScanResults()

  4. 循环的结果,并获得 scanInfo.level

一个类似的例子可以发现这里。我不会实施到类,因为你要学习的东西。如果不设法实现你的类,你应该让自己在Android编程更多的知识开始这样一个项目之前。

I am trying to get signal strength readings from existing access points within a given room without having to connect to them. I am very new to android development and eclipse so I would really appreciate it if someone could give me some direction in this matter. }

解决方案

  1. Register a BroadcastReceiver for SCAN_RESULTS_AVAILABLE_ACTION
  2. Start scanning using wifiManager.startScan()
  3. In the receiver's onReceive(), get the results using wifiManager.getScanResults()
  4. Loop the result, and get scanInfo.level

A similar example can be found here. I won't implement that into your class, because you should learn something. If you don't manage to implement your class, you should get yourself more knowledge on Android programming before starting such a project.

这篇关于从现有的接入点,WiFi功能的设备例如RSSI信号强度笔记本电脑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆