Datalogic .NET SDK

GetWiFiPowerStatus (Method)

 

Syntax

 

   public static Boolean GetWiFiPowerStatus();

 

 

Class                           : Device

Namespace                : Datalogic.API

Assembly                   : Datalogic.API.DLL

 

 

Description

Get the status of the WiFi power.

 

 

Parameters Table

 

Type

Parameter

Description

[in]

void

-

-

 

 

 

 

[returns]

Boolean

 

True indicates that WiFi is on, false indicates that WiFi is off.

[on error]

-

 

-

 

 

Example

 

        private void btnSetWifi_Click(object sender, EventArgs e)

        {

            bool b = false;

 

            WiFiState = Device.GetWiFiPowerStatus();  // current state

 

            b = Device.SetWiFiPowerState(!WiFiState); // change state

            if (!b)

            {

                txtWifiStatus.Text = "No WiFi avbl";

            }

        }

 

 

 

 

See Also

Example #033.

 

Copyright © Datalogic ADC. All Right Reserved