Datalogic .NET SDK

GetConfig (Method)

 

Syntax

 

public static WiFiConfig GetConfig(String name)

 

 

Class                           : WiFi

Namespace                : Datalogic.API

Assembly                   : Datalogic.API.DLL

 

Description

Retrieves the configuration with the given name.

 

WEP keys, PSK keys, and EAP authentication data are NOT returned.

 

Return

Associated profile settings class. Currently, the method returns a StandardWiFiConfig profile class for both standard an EAP profiles. Therefore, some of the EAP configuration can not be retrieved.

 

Throws

WiFiException on error.

 

Parameters Table

 

Type

Parameter

Description

[in]

String

name

Name of the desired profile

 

 

Example

 

         String active = WiFi.GetActiveConfig();

     if (active != "")

     {

          try

          {

              WiFiConfig cfg = WiFi.GetConfig(active);

              Debug.WriteLine("ConfigName: " + cfg.ConfigName);

              Debug.WriteLine("SSID: " + cfg.SSID);

              Debug.tWriteLine("AuthType: " + cfg.AuthType);

              Debug.WriteLine("Encr: " + cfg.Encr);

              Debug.WriteLine("Broadcast: " + cfg.Broadcast);

          }

          catch (WiFiException ex)

          {

             Debug.WriteLine("GetConfig error getting " + active + ", " + ex.ErrorCode);

          }

   }

 

Remarks

Supported devices: Skorpio X4, Falcon X4

 

See Also

WiFi (Class), Example #43.

 

 

Copyright © Datalogic ADC. All Right Reserved