Get Rssi Value From Windows

前端 未结 2 1753
抹茶落季
抹茶落季 2021-01-15 03:56

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 W

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-15 04:50

    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.

    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);
     } 
    

提交回复
热议问题