mobicontrol.wifi.WifiConfiguration

This class represents a Wi-Fi configuration.

Instances of this class can be stringified with JSON.stringify and then converted back to the WifiConfiguration instance using JSON.parse with the mobicontrol.json.revive parameter.
Check JSON Serialization tutorial for details.

WifiConfiguration

Since:
  • Version 1.5 (API level 6)

Members

readonly hasProxy :boolean

true if the access point has a proxy.
Since:
  • Version 1.5 (API level 6)

readonly hasWepSecurity :boolean

true if the access point has WEP security type.
Since:
  • Version 1.5 (API level 6)

readonly hasWpaSecurity :boolean

true if the access point has WPA security type.
Since:
  • Version 1.5 (API level 6)

readonly, nullable password :string

The password.
Since:
  • Version 1.5 (API level 6)

readonly proxyExclusionList :Array.<string>

Proxy exclusion list.
Since:
  • Version 1.5 (API level 6)

readonly, nullable proxyHost :string

Proxy host.
Since:
  • Version 1.5 (API level 6)

readonly, nullable proxyPacUrl :string

PAC Proxy URL.
Since:
  • Version 1.5 (API level 6)

readonly, nullable proxyPort :number

Proxy port.
Since:
  • Version 1.5 (API level 6)

readonly ssid :string

Service set identifier.
Since:
  • Version 1.5 (API level 6)

Methods

toJSON() → {object}

Customize JSON stringification behavior.

This function customizes behavior of JSON.stringify(): instead of this Wi-Fi configuration being serialized, the object returned by toJSON() will be serialized.

Note: This function is intended to be called internally by JSON.stringify(); it is not intended to be called directly.
Check JSON Serialization tutorial for details.

Returns:
object - Native JavaScript object representing this Wi-Fi configuration.
Since:
  • Version 1.5 (API level 6)

withPacProxy(url) → {mobicontrol.wifi.WifiConfiguration}

Set PAC proxy URL for the Wi-Fi configuration.
Parameters:
Name Type Description
url string PAC proxy URL, must not be empty.
Returns:
mobicontrol.wifi.WifiConfiguration - This Wi-Fi configuration.
Since:
  • Version 1.5 (API level 6)

withProxy(host, port, exclusionListopt) → {mobicontrol.wifi.WifiConfiguration}

Set proxy host for the Wi-Fi configuration.
Parameters:
Name Type Attributes Description
host string Proxy host.
port number Proxy port.
exclusionList Array.<string> <optional>
Proxy exclusion list, must not contain empty or null values.
Returns:
mobicontrol.wifi.WifiConfiguration - This Wi-Fi configuration.
Since:
  • Version 1.5 (API level 6)

withWepSecurity(password) → {mobicontrol.wifi.WifiConfiguration}

Set WEP security type for the Wi-Fi configuration.
Parameters:
Name Type Description
password string WEP password, must not be empty.
Returns:
mobicontrol.wifi.WifiConfiguration - This Wi-Fi configuration.
Since:
  • Version 1.5 (API level 6)

withWpaSecurity(password) → {mobicontrol.wifi.WifiConfiguration}

Set WPA security type for the Wi-Fi configuration.
Parameters:
Name Type Description
password string WPA password, must be at least 8 characters long.
Returns:
mobicontrol.wifi.WifiConfiguration - This Wi-Fi configuration.
Since:
  • Version 1.5 (API level 6)