[英]List of Wireless RSSI with JAVA on MAC OS X
I am looking for an API to get a list of RSSI's wireless networks around my Mac, but couldn't find any yet. 我正在寻找一个API,以获取Mac周围RSSI无线网络的列表,但找不到任何。
Tks for the help 谢谢你的帮助
Look at the Core WLAN framework . 看一下核心WLAN框架 。 Get a CWInterface given the "BSD name" of the interface with
initWithInterfaceName:
, use scanForNetworksWithName:
or scanForNetworksWithSSID:
without specifying a name or SSID (which will do a "broadcast scan), and then look at the CWNetworks you get back and extract information such as the RSSI from them. 在没有指定名称或SSID的情况下,使用
initWithInterfaceName:
获取具有接口的“ BSD名称”的scanForNetworksWithName:
,使用scanForNetworksWithName:
或scanForNetworksWithSSID:
将进行“广播扫描”),然后查看返回的CWNetwork并提取信息例如来自他们的RSSI。
Hopefully there's some sort of bridge that lets you access that framework from Java; 希望有某种桥梁可以让您从Java访问该框架。 if not, you might have to create that bridge yourself.
如果不是,则可能必须自己创建该桥。
Note that this is available only in Lion and later. 请注意,这仅在Lion和更高版本中可用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.