从现有的接入点,WiFi功能的设备例如RSSI信号强度笔记本电脑 [英] rssi signal strength from existing access points to wifi enabled device e.g. laptop
问题描述
我想从一个给定的房间内现有的接入点的信号强度读数,而不必连接到他们。我很新的android开发和eclipse所以我真的AP preciate,如果有人可以给我在这个问题上的一些方向。
}
- 注册一个
广播接收器
为SCAN_RESULTS_AVAILABLE_ACTION
- 开始使用扫描
wifiManager.startScan()
- 在接收器的
的onReceive()
,使用获得的wifiManager.getScanResults()
- 循环的结果,并获得
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. }
- Register a
BroadcastReceiver
forSCAN_RESULTS_AVAILABLE_ACTION
- Start scanning using
wifiManager.startScan()
- In the receiver's
onReceive()
, get the results usingwifiManager.getScanResults()
- 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屋!