En/Disable Wifi on the device.
See Also: SetWifiEnabled, IsWifiApEnabled, WifiScan
Example - Toggle WiFi
function OnStart()
{
lay = app.CreateLayout( "linear", "VCenter,FillXY" );
tgl = app.CreateToggle( "WiFi", -1, 0.1 );
tgl.SetOnTouch( tgl_OnTouch );
lay.AddChild( tgl );
app.AddLayout( lay );
}
function tgl_OnTouch( enable )
{
app.SetWifiEnabled( enable );
}