从 Windows 获取 Rssi 值 [英] Get Rssi Value From Windows
问题描述
我想测量调制解调器的 rssi 值.是否有任何 api 可以获取 Windows 的 rssi 值?我曾经使用 android 中的 Wifi.Manager 来做到这一点.但我找不到任何适用于 Windows 的 api
I would like to measure rssi value of modem.Is there any api to get rssi value for Windows?I used to do that with Wifi.Manager in android.But i couldn't find any api for Windows
推荐答案
由于此问题出现在主页上以供审核 - 现有答案已过时.现在有一个 Managed Wifi API 可用作 Windows Native Wifi API.
Since this question appeared on home page for review- the existing answer is outdated. There is now a Managed Wifi API available as a wrapper around the Windows Native Wifi API.
信号强度百分比和 RSSI 可以通过以下方式获得,Wlan.WlanAvailableNetwork[] 网络 = wlanIface.GetAvailableNetworkList(0);
Signal strength in percentage and RSSI could be obtained as, Wlan.WlanAvailableNetwork[] networks = wlanIface.GetAvailableNetworkList(0);
Wlan.WlanBssEntry[] redes = wlanIface.GetNetworkBssList(); //Get the atribute that you need
foreach (Wlan.WlanBssEntry network in redes)
{
Console.Write("Network SSID {0} RSSI {1}\n ", GetStringForSSID(network.dot11Ssid),
network.rssi);
}
这篇关于从 Windows 获取 Rssi 值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!