Java/C ++中的Wlan SSID [英] Wlan SSID in java/c++
问题描述
有什么方法可以获取WLAN信息吗? Java或C ++中的SSID,信号强度等?
Is there any way i can get WLAN information f.e. SSID, Signal strength etc in java or C++?
我了解C ++中的wlanscan函数.谁能给我任何有关如何实施的示例?
I know about the wlanscan function in C++. Can anyone give me any example on how to implement it?
还有一个Java的jwlanscan api,但对我不起作用.
There is also a jwlanscan api for java but its not working for me.
操作系统:Windows 7
OS: Windows 7
任何帮助将不胜感激.谢谢!
Any help would be appreciated. Thanks!
{
System.loadLibrary("wireless");
}
List list = getNetworkAdapterInfo();
if (list == null)
System.out.println("None Network Adapter.");
else
for (Iterator ite = list.iterator(); ite.hasNext(); )
{
NetworkAdapterInfo nic = (NetworkAdapterInfo)ite.next();
System.out.println(nic.toString());
List listap = getWirelessApInfo(nic.getName());
if (listap == null) {
System.out.println("None Access Point.");
}
else {
System.out.println("Access Point:");
for (Iterator ite1 = listap.iterator(); ite1.hasNext(); )
{
WirelessApInfo ap = (WirelessApInfo)ite1.next();
System.out.println(ap.toString());
}
}
System.out.println("");
}
到目前为止,我已经有了此代码(jwlanscan api).它不返回任何接入点.
So far i have this code (jwlanscan api). It does not return any access point.
推荐答案
经过一番搜索,我自己得到了答案. :)
After some searching, i got the answer myself. :)
此C ++代码显示所有必需的wlan信息.
This C++ code displays all the required wlan information.
这篇关于Java/C ++中的Wlan SSID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!