Get Rssi Value From Windows

I would like to measure the rssi value for a modem. Is there any api for getting rssi value for windows? I used this with Wifi.Manager in android. But I could not find api for Windows

+1
source share
2 answers

Using native code is best. You will need to use WlanQueryInterface () with the wlan_intf_opcode_rssi opcode, which will return the RSSI value as the LONG data type. From there you can convert it to dbm.

DWORD WINAPI WlanQueryInterface(
 __in        HANDLE hClientHandle,
 __in        const GUID *pInterfaceGuid,
 __in        WLAN_INTF_OPCODE OpCode,
 __reserved  PVOID pReserved,
 __out       PDWORD pdwDataSize,
 __out       PVOID *ppData,
 __out_opt   PWLAN_OPCODE_VALUE_TYPE pWlanOpcodeValueType
);

Here, using opcode wlan_intf_opcode_rssi, you get the RSSI value:

WLAN_INTF_OPCODE  >> wlan_intf_opcode_rssi >> LONG

Here is a C ++ example on how to start with:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms706765(v=vs.85).aspx

# : SSID RSSI Win7 #

0

review-, . API- Wi-Fi, API- Windows Native Wifi.

RSSI , 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);
 } 
0

All Articles