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 );
}
from native import app
def OnStart():
app.WifiConnect("DS WiFi AP", "mypass")
app.SetOnWifiChange(OnWifiChange)
def OnWifiChange(state, ssid):
app.ShowPopup(ssid + " " + state)