Datalogic .NET SDK
GetConfig (Method)
Syntax
public static WiFiConfig GetConfig(String name)
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); } }
|
Supported devices: Skorpio X4, Falcon X4
See Also
Copyright © Datalogic ADC. All Right Reserved