Connect to a WiFi network by specifying the ssid and a password.
See Also: WifiScan, SetOnWifiChange, SetWifiApEnabled
Example - Conect to DS WiFi AP
function OnStart()
{
app.WifiConnect( "DS WiFi AP", "mypass" );
app.SetOnWifiChange( OnWifiChange );
}
function OnWifiChange( state, ssid )
{
app.ShowPopup( ssid + " " + state );
}