void connectToEnterpriseNetwork(string, string, string, WiFiEapMethod)
Attempts a connection to an enterprise network.
Security
Trust Level Required: Low trust
Parameters
Name | Description |
ssid |
string The SSID of the network to connect to. |
identity |
string The identity to use when connecting. |
psk |
string The password to use when connecting. |
eapMethod |
WiFiEapMethod
The EAP authentication method to use when connecting. |
Remarks
When a connection attempt succeeds, the onNetworkStatusChange callback will fire.
Return
Returns nothing.
Examples
// connect using PEAP
KioWareUtils.connectToSavedNetwork('MyNetwork', 'user', 'password', 0);
function onNetworkStatusChange (noConnectivity, failover, type, reason) {
if (type == 1) {
if (noConnectivity)
alert('Disconnected from wifi!');
else
alert('Successfully connected to ' + KioWareUtils.getCurrentNetwork());
}
}
Requirements
KioWare for Android version 3.15 or greater.