Datalogic .NET SDK
WiFiGetRssi (Method)
Syntax
public static Boolean WiFiGetRssi(out Int32 rssi);
Description
Retrieves the value of the received signal strength indication (RSSI).
Parameters Table
|
Type |
Parameter |
Description |
[out] |
Int32 |
rssi |
The RSSI measured in dBm. The normal range for the RSSI value is from -10 through -200 dBm. |
|
|
|
|
[returns] |
Boolean |
|
A value of TRUE is returned on success. |
[on error] |
FALSE |
|
FALSE is returned to indicate failure. |
Example
private void btnWifiPwr_Click(object sender, EventArgs e) { bool b = false; bool bSuccess = false; int rssi = 0;
bSuccess = Device.SetWiFiPowerState(!bWifiEnabled); bWifiEnabled = Device.GetWiFiPowerStatus(); if (bWifiEnabled) { b = Device.WiFiGetRssi(out rssi); if (!b) { MessageBox.Show("Error getting Rssi."); } else { txtWifiGetRssi.Text = rssi.ToString(); } } }
|
See Also
Copyright © Datalogic ADC. All Right Reserved