Datalogic .NET SDK

WiFiGetSignalQuality (Method)

 

Syntax

 

   public static Boolean WiFiGetSignalQuality (out UInt32 quality);

 

 

Class                           : Device

Namespace                : Datalogic.API

Assembly                   : Datalogic.API.DLL

 

 

Description

Retrieves the signal quality of the WiFi connection.

 

 

Parameters Table

 

Type

Parameter

Description

[out]

UInt32

quality

The signal quality of the WiFi, returned as a value in the range of 0 to 31.

 

 

 

 

[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;

            uint quality = 0;

 

            bSuccess = Device.SetWiFiPowerState(!bWifiEnabled);

            bWifiEnabled = Device.GetWiFiPowerStatus();

            if (bWifiEnabled)

            {

                b = Device.WiFiGetSignalQuality(out quality);

                if (!b)

                {

                   MessageBox.Show("Error getting Signal Quality.");

                }

                else

                {

                   txtGetSigQual.Text = quality.ToString();

                }

            }

        }

 

 

 

See Also

Example #038.

 

Copyright © Datalogic ADC. All Right Reserved